tm-syscall-asm.S 284 B

12345678910111213141516171819202122232425262728
  1. #include <ppc-asm.h>
  2. #include <asm/unistd.h>
  3. .text
  4. FUNC_START(getppid_tm_active)
  5. tbegin.
  6. beq 1f
  7. li r0, __NR_getppid
  8. sc
  9. tend.
  10. blr
  11. 1:
  12. li r3, -1
  13. blr
  14. FUNC_START(getppid_tm_suspended)
  15. tbegin.
  16. beq 1f
  17. li r0, __NR_getppid
  18. tsuspend.
  19. sc
  20. tresume.
  21. tend.
  22. blr
  23. 1:
  24. li r3, -1
  25. blr