From ee79364748d09d69d15a645b142dba5b42baf2f3 Mon Sep 17 00:00:00 2001 From: ou-yangkan <519689417@qq.com> Date: Thu, 16 Dec 2021 19:43:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E7=A7=BBcsky=E6=9E=B6=E6=9E=84?= =?UTF-8?q?=E4=B8=AD=E6=96=AD=E5=85=A5=E5=8F=A3=E7=94=B1device=E5=88=B0ker?= =?UTF-8?q?nel=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ou-yangkan <519689417@qq.com> --- arch/csky/v2/gcc/los_exc.S | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/csky/v2/gcc/los_exc.S b/arch/csky/v2/gcc/los_exc.S index 7a59c1f6..23f2a33f 100644 --- a/arch/csky/v2/gcc/los_exc.S +++ b/arch/csky/v2/gcc/los_exc.S @@ -53,3 +53,25 @@ HandleEntry: lrw r2, HalExcHandleEntry jmp r2 +.section .text +.align 2 +.global IrqEntry +IrqEntry: + psrset ee + subi sp, 72 + stm r0-r15, (sp) + mfcr r0, epsr + stw r0, (sp, 64) + mfcr r0, epc + stw r0, (sp, 68) + + jbsr HalInterrupt + + ldw r0, (sp, 68) + mtcr r0, epc + ldw r0, (sp, 64) + bseti r0, r0, 6 + mtcr r0, epsr + ldm r0-r15, (sp) + addi sp, 72 + rte