Sony PlayStation2 Study
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
6.2 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /**
  2. * @file
  3. * This file contains the system call numbers, similar to asm/unistd.h on Linux.
  4. */
  5. #ifndef __SPS2_SYSCALL_NUMBERS_HEADER__
  6. #define __SPS2_SYSCALL_NUMBERS_HEADER__
  7. #define __NR_ResetEE 1
  8. #define __NR_SetGsCrt 2
  9. #define __NR__Exit 4
  10. #define __NR_ResumeIntrDispatch 5 //Arbitrarily named
  11. #define __NR__LoadExecPS2 6
  12. #define __NR__ExecPS2 7
  13. #define __NR_ResumeT3IntrDispatch 8 //Arbitrarily named (used by alarm update)
  14. #define __NR_RFU009 9
  15. #define __NR_AddSbusIntcHandler 0xa
  16. #define __NR_RemoveSbusIntcHandler 0xb
  17. #define __NR_Interrupt2Iop 0xc
  18. #define __NR_SetVTLBRefillHandler 0xd
  19. #define __NR_SetVCommonHandler 0xe
  20. #define __NR_SetVInterruptHandler 0xf
  21. #define __NR_AddIntcHandler 0x10
  22. #define __NR_AddIntcHandler2 __NR_AddIntcHandler
  23. #define __NR_RemoveIntcHandler 0x11
  24. #define __NR_AddDmacHandler 0x12
  25. #define __NR_AddDmacHandler2 __NR_AddDmacHandler
  26. #define __NR_RemoveDmacHandler 0x13
  27. #define __NR__EnableIntc 0x14
  28. #define __NR__DisableIntc 0x15
  29. #define __NR__EnableDmac 0x16
  30. #define __NR__DisableDmac 0x17
  31. #define __NR__SetAlarm 0x18
  32. #define __NR__ReleaseAlarm 0x19
  33. #define __NR_SetAlarm 0xfc
  34. #define __NR_ReleaseAlarm 0xfe
  35. #define __NR__iEnableIntc (-0x1a)
  36. #define __NR__iDisableIntc (-0x1b)
  37. #define __NR__iEnableDmac (-0x1c)
  38. #define __NR__iDisableDmac (-0x1d)
  39. #define __NR__iSetAlarm (-0x1e)
  40. #define __NR__iReleaseAlarm (-0x1f)
  41. #define __NR_iSetAlarm (-0xfd)
  42. #define __NR_iReleaseAlarm (-0xff)
  43. #define __NR_CreateThread 0x20
  44. #define __NR_DeleteThread 0x21
  45. #define __NR_StartThread 0x22
  46. #define __NR_ExitThread 0x23
  47. #define __NR_ExitDeleteThread 0x24
  48. #define __NR_TerminateThread 0x25
  49. #define __NR_iTerminateThread (-0x26)
  50. #define __NR_DisableDispatchThread 0x27
  51. #define __NR_EnableDispatchThread 0x28
  52. #define __NR_ChangeThreadPriority 0x29
  53. #define __NR_iChangeThreadPriority (-0x2a)
  54. #define __NR_RotateThreadReadyQueue 0x2b
  55. #define __NR__iRotateThreadReadyQueue (-0x2c)
  56. #define __NR_ReleaseWaitThread 0x2d
  57. #define __NR_iReleaseWaitThread (-0x2e)
  58. #define __NR_GetThreadId 0x2f
  59. #define __NR__iGetThreadId (-0x2f) //Used for a hack by SCE to workaround iWakeupThread
  60. #define __NR_ReferThreadStatus 0x30
  61. #define __NR_iReferThreadStatus (-0x31)
  62. #define __NR_SleepThread 0x32
  63. #define __NR_WakeupThread 0x33
  64. #define __NR__iWakeupThread (-0x34)
  65. #define __NR_CancelWakeupThread 0x35
  66. #define __NR_iCancelWakeupThread (-0x36)
  67. #define __NR_SuspendThread 0x37
  68. #define __NR__iSuspendThread (-0x38)
  69. #define __NR_ResumeThread 0x39
  70. #define __NR_iResumeThread (-0x3a)
  71. #define __NR_RFU059 0x3b
  72. #define __NR_RFU060 0x3c
  73. #define __NR_SetupThread __NR_RFU060
  74. #define __NR_RFU061 0x3d
  75. #define __NR_SetupHeap __NR_RFU061
  76. #define __NR_EndOfHeap 0x3e
  77. #define __NR_CreateSema 0x40
  78. #define __NR_DeleteSema 0x41
  79. #define __NR_SignalSema 0x42
  80. #define __NR_iSignalSema (-0x43)
  81. #define __NR_WaitSema 0x44
  82. #define __NR_PollSema 0x45
  83. #define __NR_iPollSema (-0x46)
  84. #define __NR_ReferSemaStatus 0x47
  85. #define __NR_iReferSemaStatus (-0x48)
  86. #define __NR_iDeleteSema (-0x49)
  87. #define __NR_SetOsdConfigParam 0x4a
  88. #define __NR_GetOsdConfigParam 0x4b
  89. #define __NR_GetGsHParam 0x4c
  90. #define __NR_GetGsVParam 0x4d
  91. #define __NR_SetGsHParam 0x4e
  92. #define __NR_SetGsVParam 0x4f
  93. #define __NR_CreateEventFlag 0x50
  94. #define __NR_DeleteEventFlag 0x51
  95. #define __NR_SetEventFlag 0x52
  96. #define __NR_iSetEventFlag 0x53
  97. #define __NR_PutTLBEntry 0x55
  98. #define __NR_iPutTLBEntry (-0x55)
  99. #define __NR__SetTLBEntry 0x56
  100. #define __NR_iSetTLBEntry (-0x56)
  101. #define __NR_GetTLBEntry 0x57
  102. #define __NR_iGetTLBEntry (-0x57)
  103. #define __NR_ProbeTLBEntry 0x58
  104. #define __NR_iProbeTLBEntry (-0x58)
  105. #define __NR_ExpandScratchPad 0x59
  106. #define __NR_EnableIntcHandler 0x5C
  107. #define __NR_iEnableIntcHandler (-0x5C)
  108. #define __NR_DisableIntcHandler 0x5D
  109. #define __NR_iDisableIntcHandler (-0x5D)
  110. #define __NR_EnableDmacHandler 0x5E
  111. #define __NR_iEnableDmacHandler (-0x5E)
  112. #define __NR_DisableDmacHandler 0x5F
  113. #define __NR_iDisableDmacHandler (-0x5F)
  114. #define __NR_KSeg0 0x60
  115. #define __NR_EnableCache 0x61
  116. #define __NR_DisableCache 0x62
  117. #define __NR_GetCop0 0x63
  118. #define __NR_FlushCache 0x64
  119. #define __NR_CpuConfig 0x66
  120. #define __NR_iGetCop0 (-0x67)
  121. #define __NR_iFlushCache (-0x68)
  122. #define __NR_RFU105 0x69
  123. #define __NR_iCpuConfig (-0x6a)
  124. #define __NR_SifStopDma 0x6b
  125. #define __NR_SetCPUTimerHandler 0x6c
  126. #define __NR_SetCPUTimer 0x6d
  127. #define __NR_SetOsdConfigParam2 0x6e
  128. #define __NR_GetOsdConfigParam2 0x6f
  129. #define __NR_GsGetIMR 0x70
  130. #define __NR_iGsGetIMR (-0x70)
  131. #define __NR_GsPutIMR 0x71
  132. #define __NR_iGsPutIMR (-0x71)
  133. #define __NR_SetPgifHandler 0x72
  134. #define __NR_SetVSyncFlag 0x73
  135. #define __NR_SetSyscall 0x74
  136. #define __NR__print 0x75
  137. #define __NR_SifDmaStat 0x76
  138. #define __NR_iSifDmaStat (-0x76)
  139. #define __NR_SifSetDma 0x77
  140. #define __NR_iSifSetDma (-0x77)
  141. #define __NR_SifSetDChain 0x78
  142. #define __NR_iSifSetDChain (-0x78)
  143. #define __NR_SifSetReg 0x79
  144. #define __NR_SifGetReg 0x7a
  145. #define __NR__ExecOSD 0x7b
  146. #define __NR_Deci2Call 0x7c
  147. #define __NR_PSMode 0x7d
  148. #define __NR_MachineType 0x7e
  149. #define __NR_GetMemorySize 0x7f
  150. #define __NR__GetGsDxDyOffset 0x80
  151. #define __NR__InitTLB 0x82
  152. #define __NR_SetMemoryMode 0x85
  153. #endif /* __SYSCALLNR_H__ */