diff options
author | Helge Deller <deller@gmx.de> | 2015-11-20 11:17:27 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2015-11-22 12:22:53 +0100 |
commit | 332b42e4eb6e955f3be0bbbf1f272aa943954d98 (patch) | |
tree | a57ab70d840236f0bc601967a32a3e903b787d1a /arch/parisc/include | |
parent | 4182d0cdf853fb044b969318289ae9f451f69c86 (diff) | |
download | linux-332b42e4eb6e955f3be0bbbf1f272aa943954d98.tar.gz linux-332b42e4eb6e955f3be0bbbf1f272aa943954d98.tar.bz2 linux-332b42e4eb6e955f3be0bbbf1f272aa943954d98.zip |
parisc: Increase initial kernel mapping to 32MB on 64bit kernel
For the 64bit kernel the initially 16 MB kernel memory might become too
small if you build a kernel with many modules built-in and with kernel
text and data areas mapped on huge pages.
This patch increases the initial mapping to 32MB for 64bit kernels and
keeps 16MB for 32bit kernels.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include')
-rw-r--r-- | arch/parisc/include/asm/pgtable.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h index 638317ae276e..d8534f95915a 100644 --- a/arch/parisc/include/asm/pgtable.h +++ b/arch/parisc/include/asm/pgtable.h @@ -83,7 +83,11 @@ static inline void purge_tlb_entries(struct mm_struct *mm, unsigned long addr) printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, (unsigned long)pgd_val(e)) /* This is the size of the initially mapped kernel memory */ -#define KERNEL_INITIAL_ORDER 24 /* 0 to 1<<24 = 16MB */ +#ifdef CONFIG_64BIT +#define KERNEL_INITIAL_ORDER 25 /* 1<<25 = 32MB */ +#else +#define KERNEL_INITIAL_ORDER 24 /* 1<<24 = 16MB */ +#endif #define KERNEL_INITIAL_SIZE (1 << KERNEL_INITIAL_ORDER) #if CONFIG_PGTABLE_LEVELS == 3 |