summaryrefslogtreecommitdiff
path: root/arch/x86/machine/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/machine/trap.c')
-rw-r--r--arch/x86/machine/trap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/machine/trap.c b/arch/x86/machine/trap.c
index 9ef26a27..c73084e7 100644
--- a/arch/x86/machine/trap.c
+++ b/arch/x86/machine/trap.c
@@ -194,6 +194,9 @@ trap_page_fault(struct trap_frame *frame)
* can't cause another page fault while handling a page fault.
*/
addr = cpu_get_cr2();
+
+ cpu_intr_enable();
+
access = (frame->error & TRAP_ERROR_PF_WRITE)
? VM_PROT_WRITE
: VM_PROT_READ;