mirror of
https://github.com/seL4/seL4.git
synced 2026-04-09 08:49:54 +00:00
boot: make linker definitions generic
Signed-off-by: Axel Heider <axelheider@gmx.de>
This commit is contained in:
@@ -46,8 +46,14 @@
|
||||
|
||||
/* This symbol is generated by the linker and marks the last valid
|
||||
* address in the kernel's virtual region */
|
||||
extern char ki_end[];
|
||||
#define KERNEL_ELF_TOP ((paddr_t)(&ki_end))
|
||||
extern char ki_end[1];
|
||||
|
||||
/* This symbol is generated by the linker and marks the end of boot
|
||||
* code/data in kernel image */
|
||||
extern char ki_boot_end[1];
|
||||
|
||||
|
||||
#define KERNEL_ELF_TOP ((paddr_t)ki_end)
|
||||
#define KERNEL_ELF_PADDR_TOP (KERNEL_ELF_TOP - KERNEL_ELF_BASE_OFFSET)
|
||||
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
@@ -26,11 +26,6 @@
|
||||
#ifdef CONFIG_ARM_SMMU
|
||||
#include <drivers/smmu/smmuv2.h>
|
||||
#endif
|
||||
/* pointer to the end of boot code/data in kernel image */
|
||||
/* need a fake array to get the pointer from the linker script */
|
||||
extern char ki_boot_end[1];
|
||||
/* pointer to end of kernel image */
|
||||
extern char ki_end[1];
|
||||
|
||||
#ifdef ENABLE_SMP_SUPPORT
|
||||
/* sync variable to prevent other nodes from booting
|
||||
|
||||
@@ -18,12 +18,6 @@
|
||||
#include <plat/machine/hardware.h>
|
||||
#include <machine.h>
|
||||
|
||||
/* pointer to the end of boot code/data in kernel image */
|
||||
/* need a fake array to get the pointer from the linker script */
|
||||
extern char ki_boot_end[1];
|
||||
/* pointer to end of kernel image */
|
||||
extern char ki_end[1];
|
||||
|
||||
#ifdef ENABLE_SMP_SUPPORT
|
||||
BOOT_BSS static volatile word_t node_boot_lock;
|
||||
#endif
|
||||
|
||||
@@ -36,8 +36,6 @@ extern char boot_stack_bottom[1];
|
||||
extern char boot_stack_top[1];
|
||||
|
||||
/* locations in kernel image */
|
||||
extern char ki_boot_end[1];
|
||||
extern char ki_end[1];
|
||||
extern char ki_skim_start[1];
|
||||
extern char ki_skim_end[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user