Browse Source

add Bonito3a82w timer irq process in asm code.

Change-Id: I501c85dc8ffe24bbc47ceec69e9581d79e225d08
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 7 years ago
committed by Chong Qiao
parent
commit
f51366c49d
  1. 23
      Targets/Bonito3a82w/Bonito/start.S

23
Targets/Bonito3a82w/Bonito/start.S

@ -158,6 +158,19 @@ ext_map_and_reboot:
/* General exception */ /* General exception */
.align 7 /* bfc00380 */ .align 7 /* bfc00380 */
#ifdef CLKIRQ_ENABLE
mfc0 k1,COP_0_CAUSE_REG
andi k1,0x807f
xori k1,0x8000
bnez k1,1f
nop
mfc0 k1,$11
lui k0,0x1000
addu k1,k0
mtc0 k1,$11
eret
1:
#endif
la a0, v380_msg la a0, v380_msg
bal stringserial bal stringserial
nop nop
@ -310,6 +323,16 @@ wait_to_be_killed:
bne t0, a0, slave_main bne t0, a0, slave_main
nop nop
#ifdef CLKIRQ_ENABLE
li t0, SR_BOOT_EXC_VEC|0x8001 /* Exception to Boostrap Location */
mtc0 t0, COP_0_STATUS_REG
li v0,0x10000000
mtc0 zero,$9
mtc0 v0,$11
mtc0 zero, COP_0_CAUSE_REG
#endif
bal initserial bal initserial
nop nop
bal initserial1 bal initserial1

Loading…
Cancel
Save