Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. __asm void DISABLE_INT( void )
  2. {
  3. .comm DISABLE_VAR,4,4
  4. mfmsr r3 ; Get current MSR
  5. rlwinm r4,r3,0,17,15 ; Mask External Interrupt Enable bit
  6. mtmsr r4 ; in MSR (bit 16)
  7. sync ; Must sync because of chip bug in some 603E.
  8. addis r4,r0,DISABLE_VAR@ha
  9. stw r3,DISABLE_VAR@l(r4)
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement