syscall.S 300 B

123456789101112131415161718
  1. #include <sys/syscall.h>
  2. .globl __syscall_error
  3. __syscall_error:
  4. neg.d $r10,$r10
  5. push $r10
  6. push $srp
  7. jsr __errno_location
  8. pop $srp
  9. pop $r11
  10. move.d $r11,[$r10]
  11. moveq -1, $r10
  12. ret
  13. nop