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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -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..