Commit 0f7e8efa authored by Guo Ren's avatar Guo Ren

csky: Fixup do_page_fault parent irq status

We must succeed parent's context irq status in page fault handler.
Signed-off-by: default avatarGuo Ren <guoren@linux.alibaba.com>
parent 06f3f764
......@@ -42,7 +42,7 @@ ENTRY(csky_pagefault)
SAVE_ALL 0
zero_fp
context_tracking
psrset ee, ie
psrset ee
mov a0, sp
jbsr do_page_fault
jmpi ret_from_exception
......
......@@ -143,6 +143,10 @@ asmlinkage void do_page_fault(struct pt_regs *regs)
return;
}
/* Enable interrupts if they were enabled in the parent context. */
if (likely(regs->sr & BIT(6)))
local_irq_enable();
/*
* If we're in an interrupt or have no user
* context, we must not take the fault..
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment