xen/arm: Add BOOT_FDT_VIRT_END and BOOT_FDT_SLOT_SIZE
authorJulien Grall <julien.grall@arm.com>
Thu, 20 Apr 2017 15:12:24 +0000 (16:12 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 20 Apr 2017 17:31:09 +0000 (10:31 -0700)
The 2 new defines will help to avoid hardcoding the size and the end of
the slot in the code.

The newlines are added for clarity.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/config.h

index b2edf95f72fe00d19888009b1190af056250c0e6..9c14a385e758c425beaf288c3410528cfefacae4 100644 (file)
 
 #define XEN_VIRT_START         _AT(vaddr_t,0x00200000)
 #define FIXMAP_ADDR(n)        (_AT(vaddr_t,0x00400000) + (n) * PAGE_SIZE)
+
 #define BOOT_FDT_VIRT_START    _AT(vaddr_t,0x00600000)
+#define BOOT_FDT_SLOT_SIZE     MB(2)
+#define BOOT_FDT_VIRT_END      (BOOT_FDT_VIRT_START + BOOT_FDT_SLOT_SIZE)
+
 #define BOOT_RELOC_VIRT_START  _AT(vaddr_t,0x00800000)
 #ifdef CONFIG_LIVEPATCH
 #define LIVEPATCH_VMAP_START   _AT(vaddr_t,0x00800000)