[POWERPC] Add memory regions to the kcore list for 32-bit machines
The entries are only 32-bit, so restrict the virtual address to stay below 0xffff_ffff. With KERNELBASE set to 0xc000_0000, this in effect restricts access to the first 1GB of real memory. Make setup_kcore conditional on CONFIG_PROC_KCORE for both 32/64. Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
94987aff23
commit
df174e3be8
@ -113,6 +113,7 @@ void free_initrd_mem(unsigned long start, unsigned long end)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PROC_KCORE
|
||||
static struct kcore_list kcore_vmem;
|
||||
|
||||
static int __init setup_kcore(void)
|
||||
@ -139,6 +140,7 @@ static int __init setup_kcore(void)
|
||||
return 0;
|
||||
}
|
||||
module_init(setup_kcore);
|
||||
#endif
|
||||
|
||||
static void zero_ctor(void *addr, struct kmem_cache *cache, unsigned long flags)
|
||||
{
|
||||
|
Reference in New Issue
Block a user