tas.s 337 B

12345678910111213141516171819
  1. TEXT _tas(SB), $0
  2. SYNC
  3. MOVW R3, R4
  4. MOVW $0xdeaddead,R5
  5. tas1:
  6. /* taken out for the 755. dcbf and L2 caching do not seem to get on
  7. with eachother. It seems that dcbf is desctructive in the L2 cache
  8. (also see l.s) */
  9. DCBF (R4)
  10. SYNC
  11. LWAR (R4), R3
  12. CMP R3, $0
  13. BNE tas0
  14. STWCCC R5, (R4)
  15. BNE tas1
  16. tas0:
  17. SYNC
  18. ISYNC
  19. RETURN