int.s
471 Bytes
#include <regdef.h>
#include <asm.h>
#include <PR/R4300.h>
.text
.align 2
.globl __disable_int
.type symbol,@function
.ent __disable_int
__disable_int:
/* Load SR register */
mfc0 t0,C0_SR
/* Turn off IE */
and t1, t0, ~SR_IE
mtc0 t1, C0_SR
.end __disable_int
.text
.align 2
.globl __enable_int
.type symbol,@function
.ent __enable_int
__enable_int:
/* Load SR register */
mfc0 t0,C0_SR
/* Turn off IE */
or t1, t0, SR_IE
mtc0 t1, C0_SR
.end __enable_int