VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / arch / arm / mm / fault.c
index c000617..29be1c0 100644 (file)
@@ -66,9 +66,7 @@ void show_pte(struct mm_struct *mm, unsigned long addr)
                /* We must not map this if we have highmem enabled */
                pte = pte_offset_map(pmd, addr);
                printk(", *pte=%08lx", pte_val(*pte));
-#ifdef CONFIG_CPU_32
                printk(", *ppte=%08lx", pte_val(pte[-PTRS_PER_PTE]));
-#endif
                pte_unmap(pte);
 #endif
        } while(0);
@@ -129,7 +127,7 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,
        si.si_signo = SIGSEGV;
        si.si_errno = 0;
        si.si_code = code;
-       si.si_addr = (void *)addr;
+       si.si_addr = (void __user *)addr;
        force_sig_info(SIGSEGV, &si, tsk);
 }