]> xenbits.xensource.com Git - xen.git/commitdiff
arm/mpu: Add HYPERVISOR_VIRT_START and avoid a check in xen.lds.S
authorLuca Fancellu <luca.fancellu@arm.com>
Tue, 1 Apr 2025 08:58:52 +0000 (09:58 +0100)
committerMichal Orzel <michal.orzel@amd.com>
Wed, 2 Apr 2025 09:15:10 +0000 (11:15 +0200)
The define HYPERVISOR_VIRT_START is required by the common code,
even if MPU system doesn't use virtual memory, define it in
mpu/layout.h in order to reuse existing code.

Disable a check in the linker script for arm for !MMU systems.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
xen/arch/arm/include/asm/mpu/layout.h
xen/arch/arm/xen.lds.S

index d6d397f4c2ac91a44fe94e9ac690bccce7c83b1a..248e55f8882d20a84128f615876c545eedbcc354 100644 (file)
@@ -22,6 +22,8 @@
  */
 #define XEN_VIRT_START         _AT(paddr_t, XEN_START_ADDRESS)
 
+#define HYPERVISOR_VIRT_START  XEN_VIRT_START
+
 #endif /* __ARM_MPU_LAYOUT_H__ */
 /*
  * Local variables:
index 325b8059fd963d799ad505a7d87294722c6c8e85..86a6e311cfc5c10c57061aa95e02897c04e4e634 100644 (file)
@@ -237,4 +237,6 @@ ASSERT(IS_ALIGNED(__bss_start,      POINTER_ALIGN), "__bss_start is misaligned")
 ASSERT(IS_ALIGNED(__bss_end,        POINTER_ALIGN), "__bss_end is misaligned")
 /* To simplify the logic in head.S, we want to _end to be page aligned */
 ASSERT(IS_ALIGNED(_end,             PAGE_SIZE), "_end is not page aligned")
+#ifdef CONFIG_MMU
 ASSERT((_end - _start) <= XEN_VIRT_SIZE, "Xen is too big")
+#endif