
   PRESERVE8 
   AREA    wfiCode, CODE, READONLY
   ALIGN































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































   EXPORT APWFIWaitCPSignal_START
   EXPORT APWFIWaitCPSignal_SHRAM
   EXPORT APLoopForCPSignal_SHRAM
   EXPORT APWFIWaitCPSignal_END



APWFIWaitCPSignal_START



APWFIWaitCPSignal_SHRAM
   LDR   r2,=0xFC130000

   MOV   r1,#0x01
   MOV   r3,#((0xFC130000 + 0x08C) - 0xFC130000)
   STR   r1,[r2, r3]
   MCR   p15, 0, r1, c7, c0, 4


APWFIWaitCPSignal_SHRAM_LoopForSignal
   LDR r1,[r2]
   BICS r1,r0,r1
   BNE APWFIWaitCPSignal_SHRAM_LoopForSignal

   BX lr


APLoopForCPSignal_SHRAM
    LDR   r2,=0xFC130000

APLoopForCPSignal_SHRAM_LoopForSignal
          LDR r1,[r2]
          TST r1,r0
          BNE APLoopForCPSignal_SHRAM_LoopForSignal

     BX lr





APWFIWaitCPSignal_END

    END
