Changeset 5201199 in mainline
- Timestamp:
- 2006-03-24T12:17:22Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4037847
- Parents:
- 11cb08ca
- Location:
- arch/mips32/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/exception.c
r11cb08ca r5201199 90 90 istate->epc += 4; 91 91 istate->v1 = istate->k1; 92 } else { 93 print_regdump(istate); 94 panic("reserved instruction"); 95 } 92 } else 93 unhandled_exception(n, istate); 96 94 } 97 95 -
arch/mips32/src/start.S
r11cb08ca r5201199 252 252 mtc0 $t0, $status 253 253 254 # CALL Syscall handler 254 255 jal syscall_handler 255 256 sw $v0, SS_ARG4($sp) # save v0 - arg4 to stack 256 257 257 # restore epc+4258 lw $t0,SS_EPC($sp)259 addi $t0, $t0, 4260 mtc0 $t0, $epc261 262 258 # restore status 263 259 mfc0 $t0, $status 264 260 lw $t1,SS_STATUS($sp) 265 261 262 # Change back to EXL=1(from last exception), otherwise 263 # an interrupt could rewrite the CP0-EPC 266 264 li $t2, ~REG_SAVE_MASK # Mask UM,EXL,ERL,IE 267 265 and $t0, $t0, $t2 … … 269 267 mtc0 $t0, $status 270 268 269 # restore epc+4 270 lw $t0,SS_EPC($sp) 271 addi $t0, $t0, 4 272 mtc0 $t0, $epc 273 271 274 lw $sp,SS_SP($sp) # restore sp 272 275
Note:
See TracChangeset
for help on using the changeset viewer.