xen/arm: Move fixmap definitions in a separate header
authorJulien Grall <jgrall@amazon.com>
Fri, 20 May 2022 12:09:30 +0000 (13:09 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 8 Jun 2022 10:04:53 +0000 (11:04 +0100)
commite7f144f80839168e632ea4405ad114e991beecdf
treee74e6b914449a161e9fc8216e7dcdcfceff6a4a8
parent77f00c2f023ef1236ec29347bcef13069971fae2
xen/arm: Move fixmap definitions in a separate header

To use properly the fixmap definitions, their user would need
also new to include <xen/acpi.h>. This is not very great when
the user itself is not meant to directly use ACPI definitions.

Including <xen/acpi.h> in <asm/config.h> is not option because
the latter header is included by everyone. So move out the fixmap
entries definition in a new header.

Take the opportunity to also move {set, clear}_fixmap() prototypes
in the new header.

Note that most of the definitions in <xen/acpi.h> now need to be
surrounded with #ifndef __ASSEMBLY__ because <asm/fixmap.h> will
be used in assembly (see EARLY_UART_VIRTUAL_ADDRESS).

The split will become more helpful in a follow-up patch where new
fixmap entries will be defined.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/acpi/lib.c
xen/arch/arm/include/asm/config.h
xen/arch/arm/include/asm/early_printk.h
xen/arch/arm/include/asm/fixmap.h [new file with mode: 0644]
xen/arch/arm/include/asm/mm.h
xen/arch/arm/kernel.c
xen/arch/arm/mm.c
xen/include/xen/acpi.h