180 |
|
isync |
181 |
|
lwarx r5,0,r3 |
182 |
|
cmpi 0,r5,0x0000 |
183 |
< |
beq 1f |
183 |
> |
bne 1f |
184 |
|
stwcx. r4,0,r3 |
185 |
|
bne- 0b |
186 |
|
1: isync |
710 |
|
* Native resource manager patches |
711 |
|
*/ |
712 |
|
|
713 |
< |
ASM_MACRO_START do_get_resource XLM_OLD_GET_RESOURCE |
713 |
> |
ASM_MACRO_START do_get_resource ASM_MACRO_ARG0_DEF |
714 |
|
// Create stack frame |
715 |
|
mflr r0 |
716 |
|
stw r0,8(r1) |
721 |
|
stw r4,56+4(r1) |
722 |
|
|
723 |
|
// Call old routine |
724 |
< |
lwz r0,\XLM_OLD_GET_RESOURCE(0) |
724 |
> |
lwz r0,ASM_MACRO_ARG0(0) |
725 |
|
lwz r2,XLM_RES_LIB_TOC(0) |
726 |
|
mtctr r0 |
727 |
|
bctrl |