Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

Guo Ren 0f7e8efa 06f3f764

+5 -1
+1 -1
arch/csky/kernel/entry.S
··· 42 42 SAVE_ALL 0 43 43 zero_fp 44 44 context_tracking 45 - psrset ee, ie 45 + psrset ee 46 46 mov a0, sp 47 47 jbsr do_page_fault 48 48 jmpi ret_from_exception
+4
arch/csky/mm/fault.c
··· 143 143 return; 144 144 } 145 145 146 + /* Enable interrupts if they were enabled in the parent context. */ 147 + if (likely(regs->sr & BIT(6))) 148 + local_irq_enable(); 149 + 146 150 /* 147 151 * If we're in an interrupt or have no user 148 152 * context, we must not take the fault..