Commit 92800b1d authored by Roberto Hexsel's avatar Roberto Hexsel

fixed handlers.s

parent fc3b9232
Pipeline #2593 skipped
......@@ -213,6 +213,7 @@ cmips_delay:
# _kmsg_saves[0]=$a0, [1]=$a1, [2]=$a2, [3]=$ra
#
.text
.align 2
.set noreorder
.set noat
.global cmips_kmsg
......@@ -227,7 +228,7 @@ cmips_kmsg:
sw $a2, 2*4($k0)
lui $a1, %hi(_kmsg_list)
ori $a1, $a1, %hi(_kmsg_list)
ori $a1, $a1, %lo(_kmsg_list)
sll $k1, $k1, 2 # adjust index onto table
addu $a1, $a1, $k1
......@@ -250,10 +251,12 @@ k_for: lbu $a0, 0($a1)
.equ kmsg_interr,0
.equ kmsg_excep,1
.data
.align 2
.global _kmsg_list
_kmsg_list: .word _kmsg_interr,_kmsg_excep
_kmsg_interr: .asciiz "\n\tinterrupt\n\n"
_kmsg_excep: .asciiz "\n\texceptioninterrupt\n\n"
_kmsg_list: .word _kmsg_interr,_kmsg_excep
#----------------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment