转移csky架构中断入口由device到kernel中

Signed-off-by: ou-yangkan <519689417@qq.com>
This commit is contained in:
ou-yangkan 2021-12-16 19:43:33 +08:00
parent d03b490d3d
commit ee79364748
1 changed files with 22 additions and 0 deletions

View File

@ -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