summaryrefslogtreecommitdiff
path: root/asm/os/__osDisableInt.s
blob: cf6029f5664498a1a1196f1350a4ccb5ff3e72e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.set noreorder # don't insert nops after branches
.set gp=64

.include "macros.inc"


.section .text, "ax"


glabel __osDisableInt
  mfc0  $t0, C0_SR
  and   $t1, $t0, ~SR_IE
  mtc0  $t1, C0_SR
  andi  $v0, $t0, SR_IE
  nop
  jr    $ra
   nop