From: Haavard Skinnemoen Date: Wed, 13 Feb 2008 11:32:34 +0000 (+0100) Subject: avr32: Fix broken pte dump code in do_page_fault() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=32019828d9012e584017a824f84798248c0060dd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git avr32: Fix broken pte dump code in do_page_fault() The per-task page tables only cover the first 2GiB of the address space. For kernel addresses, we need to do the lookup in init's page tables. This is a temporary workaround until we modify the per-task page tables to cover the whole 4GiB address space. Signed-off-by: Haavard Skinnemoen --- diff --git a/arch/avr32/mm/fault.c b/arch/avr32/mm/fault.c index 6560cb18b4e3..ce4e4296b954 100644 --- a/arch/avr32/mm/fault.c +++ b/arch/avr32/mm/fault.c @@ -189,6 +189,8 @@ no_context: page = sysreg_read(PTBR); printk(KERN_ALERT "ptbr = %08lx", page); + if (address >= TASK_SIZE) + page = (unsigned long)swapper_pg_dir; if (page) { page = ((unsigned long *)page)[address >> 22]; printk(" pgd = %08lx", page);