lib: move 64-bit div/mod compiler helpers
authorJan Beulich <jbeulich@suse.com>
Fri, 16 Apr 2021 12:43:10 +0000 (14:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 16 Apr 2021 12:43:10 +0000 (14:43 +0200)
commit849db4945b8b166085751681ac8b4f5b7cefece0
treeee5850793713d08fcc8a371927ca86fd7f28072d
parentb3de22dda782af06e625b513cc3cccb98c1635c6
lib: move 64-bit div/mod compiler helpers

These were built for 32-bit architectures only (the same code could,
with some tweaking, sensibly be used to provide TI-mode helpers on
64-bit arch-es) - retain this property, while still avoiding to have
a CU without any contents at all. For this, Arm's CONFIG_64BIT gets
generalized.

Note that we imply "32-bit arch" to be the same as BITS_PER_LONG == 32,
i.e. we aren't (not just here) prepared to have a 64-bit arch with
BITS_PER_LONG == 32. Yet even if we supported such, likely the compiler
would get away there without invoking these helpers, so the code would
remain unused in practice.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/Kconfig
xen/arch/arm/Kconfig
xen/arch/x86/Kconfig
xen/common/Makefile
xen/common/lib.c [deleted file]
xen/lib/Makefile
xen/lib/divmod.c [new file with mode: 0644]