     PRESERVE8 
























































    EXPORT    PCUWriteEnterCriticalRegion
    EXPORT    PCUWriteLeaveCriticalRegion








    AREA SysInterlocked, CODE, READONLY

    CODE32



PCUWriteEnterCriticalRegion
     STMFD    sp!,{r4,lr}


     MRS     r0, CPSR
     ORR     r1, r0, #0x80:OR:0x40
     MSR     CPSR_c, r1



    LDMFD    sp!,{r4,lr}
    BX LR



PCUWriteLeaveCriticalRegion
    STMFD    sp!,{r4,lr}







     MSR     CPSR_c, r0
     LDMFD    sp!,{r4,lr}
     BX          LR



    : END OF FILE 
    END

