diff options
author | John Williams <john.williams@petalogix.com> | 2009-06-21 19:38:13 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-09-22 04:10:06 -0400 |
commit | a1253977dff4a033d61a7a96608f5a0bbb36dbf6 (patch) | |
tree | 60f60c08c6f63e4eda5f2551a82549fd6fbef00f /arch/microblaze/include/asm | |
parent | 19086765140e979d955b536f87e755af43f3fdf5 (diff) |
microblaze: Create the LOAD_OFFSET macro used to compute VMA vs LMA offsets
LOAD_OFFSET is the offset between the physical load address and the kernel's
virtual address. It will be used in the upcoming commit to vmlinux.ld.S to
make sure that the LMAs of sections in vmlinux are correct.
Signed-off-by: John Williams <john.williams@petalogix.com>
Diffstat (limited to 'arch/microblaze/include/asm')
-rw-r--r-- | arch/microblaze/include/asm/page.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/page.h b/arch/microblaze/include/asm/page.h index 72aceae88680..880c988c2237 100644 --- a/arch/microblaze/include/asm/page.h +++ b/arch/microblaze/include/asm/page.h | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include <linux/pfn.h> | 18 | #include <linux/pfn.h> |
19 | #include <asm/setup.h> | 19 | #include <asm/setup.h> |
20 | #include <asm/asm-compat.h> | ||
20 | #include <linux/const.h> | 21 | #include <linux/const.h> |
21 | 22 | ||
22 | #ifdef __KERNEL__ | 23 | #ifdef __KERNEL__ |
@@ -26,6 +27,8 @@ | |||
26 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) | 27 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) |
27 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 28 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
28 | 29 | ||
30 | #define LOAD_OFFSET ASM_CONST((CONFIG_KERNEL_START-CONFIG_KERNEL_BASE_ADDR)) | ||
31 | |||
29 | #ifndef __ASSEMBLY__ | 32 | #ifndef __ASSEMBLY__ |
30 | 33 | ||
31 | #define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1))) | 34 | #define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1))) |