diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-12-28 18:11:26 +0300 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2021-01-12 04:52:41 +0300 |
commit | 0f7e8efab25735217df11c9c6b7d7696f26340ee (patch) | |
tree | c0fd32f6bb0367ea40d310b5a667e1bc09067d77 /arch/csky/mm | |
parent | 06f3f764417b04db765cbdee2dfeaef29fa52214 (diff) | |
download | linux-0f7e8efab25735217df11c9c6b7d7696f26340ee.tar.xz |
csky: Fixup do_page_fault parent irq status
We must succeed parent's context irq status in page fault handler.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky/mm')
-rw-r--r-- | arch/csky/mm/fault.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/csky/mm/fault.c b/arch/csky/mm/fault.c index 9533bd8d9a6a..cd8c7304c7e9 100644 --- a/arch/csky/mm/fault.c +++ b/arch/csky/mm/fault.c @@ -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.. |