From a56da6d0d2fe6fef2f271569e9e5cfd4bb63b838 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 16 Jun 2005 13:21:52 +0000 Subject: [PATCH] Don't pass the kernel_pmap to pmap_fault_fixup() if the fault comes from kernel mode, always use the curthread pmap instead. There are valid cases were we can fault on a user address from the kernel without pcb_onfault being set. Approved by: re (blanket) --- sys/arm/arm/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm/arm/trap.c b/sys/arm/arm/trap.c index 1b9639297e17..82e0aef81c31 100644 --- a/sys/arm/arm/trap.c +++ b/sys/arm/arm/trap.c @@ -406,8 +406,8 @@ data_abort_handler(trapframe_t *tf) #ifdef DEBUG last_fault_code = fsr; #endif - if (pmap_fault_fixup(user ? vmspace_pmap(td->td_proc->p_vmspace) : - kernel_pmap, va, ftype, user)) { + if (pmap_fault_fixup(vmspace_pmap(td->td_proc->p_vmspace), va, ftype, + user)) { goto out; }