mirror of
https://github.com/vivier/EMILE.git
synced 2025-04-01 18:33:33 +00:00
disable interrupts here
This commit is contained in:
parent
97b1de3ca3
commit
a3d2b674e2
@ -35,12 +35,16 @@
|
||||
|
||||
.global enter_kernelPPC
|
||||
enter_kernelPPC:
|
||||
link.w %fp,#-8
|
||||
link.w %fp,#0
|
||||
|
||||
/* get physical start address of kernel */
|
||||
|
||||
move.l 8(%fp), %a0
|
||||
|
||||
/* disable interrupts */
|
||||
|
||||
ori.w #0x0700, %sr
|
||||
|
||||
/* get PPC registers values */
|
||||
|
||||
move.l 12(%fp), %a1
|
||||
@ -79,8 +83,10 @@ loop:
|
||||
moveq #0, %d2
|
||||
reset
|
||||
|
||||
move.l %sp,-(%sp)
|
||||
move.l %sp,-(%sp)
|
||||
wait:
|
||||
dc.w 0xFE03
|
||||
beq wait
|
||||
|
||||
unlk %fp
|
||||
rts
|
||||
|
Loading…
x
Reference in New Issue
Block a user