ARM: 9088/1: Split KERNEL_OFFSET from PAGE_OFFSET
We want to be able to compile the kernel into an address different from PAGE_OFFSET (start of lowmem) + TEXT_OFFSET, so start to pry apart the address of where the kernel is located from the address where the lowmem is located by defining and using KERNEL_OFFSET in a few key places. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
This commit is contained in:
committed by
Russell King (Oracle)
parent
8b95a7d90c
commit
b78f63f443
@@ -20,8 +20,14 @@
|
||||
#endif
|
||||
#include <asm/kasan_def.h>
|
||||
|
||||
/* PAGE_OFFSET - the virtual address of the start of the kernel image */
|
||||
/*
|
||||
* PAGE_OFFSET: the virtual address of the start of lowmem, memory above
|
||||
* the virtual address range for userspace.
|
||||
* KERNEL_OFFSET: the virtual address of the start of the kernel image.
|
||||
* we may further offset this with TEXT_OFFSET in practice.
|
||||
*/
|
||||
#define PAGE_OFFSET UL(CONFIG_PAGE_OFFSET)
|
||||
#define KERNEL_OFFSET (PAGE_OFFSET)
|
||||
|
||||
#ifdef CONFIG_MMU
|
||||
|
||||
|
||||
Reference in New Issue
Block a user