diff options
author | Helge Deller <deller@gmx.de> | 2017-08-20 11:52:22 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2017-08-22 17:34:35 +0300 |
commit | f5213b2c40f5749e6b9b8f737ea946495ed0a438 (patch) | |
tree | de97da492124e3c3bc9324773efee160ac814ed3 /arch/parisc/include/asm/page.h | |
parent | 2f3c7b8137ef6a3f90850d7cb5dbd05d8940403a (diff) | |
download | linux-f5213b2c40f5749e6b9b8f737ea946495ed0a438.tar.xz |
parisc: Make existing core files reuseable for bootloader
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/asm/page.h')
-rw-r--r-- | arch/parisc/include/asm/page.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/page.h b/arch/parisc/include/asm/page.h index 80e742a1c162..bfed09d80bae 100644 --- a/arch/parisc/include/asm/page.h +++ b/arch/parisc/include/asm/page.h @@ -116,11 +116,15 @@ extern int npmem_ranges; /* This governs the relationship between virtual and physical addresses. * If you alter it, make sure to take care of our various fixed mapping * segments in fixmap.h */ +#if defined(BOOTLOADER) +#define __PAGE_OFFSET (0) /* bootloader uses physical addresses */ +#else #ifdef CONFIG_64BIT #define __PAGE_OFFSET (0x40000000) /* 1GB */ #else #define __PAGE_OFFSET (0x10000000) /* 256MB */ #endif +#endif /* BOOTLOADER */ #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET) |