Editing LV2 Functions and Syscalls
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 37: | Line 37: | ||
int64_t modres; | int64_t modres; | ||
uint64_t pe_func; //casted to sys_prx_entry_pe_t (see sys/prx.h) | uint64_t pe_func; //casted to sys_prx_entry_pe_t (see sys/prx.h) | ||
}; | }; | ||
</source> | </source> | ||
Line 551: | Line 539: | ||
| {{Root}} | | {{Root}} | ||
| sys_process_get_sdk_version | | sys_process_get_sdk_version | ||
| | | 2 params :sys_pid_t pid, uint8_t outbuf[4] | ||
|- | |- | ||
| 26 | | 26 | ||
Line 986: | Line 973: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_create | ||
| int | | int sys_lwmutex_create(sys_lwmutex_t *lwmutex, sys_lwmutex_attribute_t *attr) | ||
|- | |- | ||
| 96 | | 96 | ||
Line 993: | Line 980: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_destroy | ||
| int | | int sys_lwmutex_destroy(sys_lwmutex_t *lwmutex) | ||
|- | |- | ||
| 97 | | 97 | ||
Line 1,000: | Line 987: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_lock | ||
| int | | int sys_lwmutex_lock(sys_lwmutex_t *lwmutex, usecond_t timeout) | ||
|- | |- | ||
| 98 | | 98 | ||
Line 1,007: | Line 994: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_unlock | ||
| int | | int sys_lwmutex_unlock(sys_lwmutex_t *lwmutex) | ||
|- | |- | ||
| 99 | | 99 | ||
Line 1,014: | Line 1,001: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_trylock | ||
| int | | int sys_lwmutex_trylock(sys_lwmutex_t *lwmutex) | ||
|- | |- | ||
! colspan="6" id="sys_mutex Syscalls"|[[#sys_mutex Syscalls]] (100-104) | ! colspan="6" id="sys_mutex Syscalls"|[[#sys_mutex Syscalls]] (100-104) | ||
Line 1,104: | Line 1,091: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwcond_create | ||
| int | | int sys_lwcond_create(sys_lwcond_t *lwcond, sys_lwmutex_t *lwmutex, sys_lwcond_attribute_t *attr) | ||
|- | |- | ||
| 112 | | 112 | ||
Line 1,111: | Line 1,098: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwcond_destroy | ||
| int | | int sys_lwcond_destroy(sys_lwcond_t *lwcond) | ||
|- | |- | ||
| 113 | | 113 | ||
Line 1,118: | Line 1,105: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwcond_queue_wait | ||
| int | | int sys_lwcond_queue_wait(sys_lwcond_t lwcond, sys_lwmutex_t lwmutex, __int64 timeout) | ||
|- | |- | ||
! colspan="6" id="sys_semaphore Syscalls"|[[#sys_semaphore Syscalls]] (90-94+114) | ! colspan="6" id="sys_semaphore Syscalls"|[[#sys_semaphore Syscalls]] (90-94+114) | ||
Line 1,134: | Line 1,121: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwcond_signal | ||
| | | 4 params | ||
|- | |- | ||
| 116 | | 116 | ||
Line 1,141: | Line 1,128: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwcond_signal_all | ||
| | | 3 params | ||
|- | |- | ||
| 117 | | 117 | ||
Line 1,148: | Line 1,135: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_lwmutex_unlock2 | ||
| | | 1 params : sys_lwmutex_t *lwmutex | ||
|- | |- | ||
! colspan="6" id="sys_event Syscalls"|[[#sys_event Syscalls]] (82+83+85-87+118+128-140) | ! colspan="6" id="sys_event Syscalls"|[[#sys_event Syscalls]] (82+83+85-87+118+128-140) | ||
Line 1,422: | Line 1,408: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| sys_spu_image_get_information | | sys_spu_image_get_information? | ||
| int sys_spu_image_get_information(sys_spu_image_t *img, | | int sys_spu_image_get_information?(sys_spu_image_t *img, out:uint[4],out:uint[4]) | ||
|- | |- | ||
| 156 | | 156 | ||
Line 1,450: | Line 1,436: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| | | | ||
| | | sys_raw_spu_load | ||
| | | 3 Params ( sys_spu_image_t * img, sys_addr_t alloc_addr, int size? ), needs much more proper information | ||
|- | |- | ||
| 160 | | 160 | ||
Line 1,522: | Line 1,507: | ||
| | | | ||
| sys_spu_thread_initialize | | sys_spu_thread_initialize | ||
| int sys_spu_thread_initialize(sys_spu_thread_t *thread, sys_spu_thread_group_t group, | | int sys_spu_thread_initialize(sys_spu_thread_t *thread,sys_spu_thread_group_t group,uint spu_num,sys_spu_image_t *img,sys_spu_thread_attribute_t *attr,sys_spu_thread_argument_t *arg) | ||
|- | |- | ||
| 173 | | 173 | ||
Line 1,966: | Line 1,951: | ||
| | | | ||
| sys_spu_thread_group_get_cooperative_information | | sys_spu_thread_group_get_cooperative_information | ||
| int sys_spu_thread_group_get_cooperative_information(sys_spu_thread_group_t id, sys_spu_thread_group_cooperative_info_t* info) | | int sys_spu_thread_group_get_cooperative_information( sys_spu_thread_group_t id, sys_spu_thread_group_cooperative_info_t* info) | ||
Only allowed for COOPERATE_WITH_SYSTEM spu thread group types. | Only allowed for COOPERATE_WITH_SYSTEM spu thread group types. | ||
|- | |- | ||
Line 2,854: | Line 2,839: | ||
| | | | ||
| sys_overlay_get_sdk_version | | sys_overlay_get_sdk_version | ||
| | | 2 Params | ||
|- | |- | ||
| 457 | | 457 | ||
Line 2,940: | Line 2,925: | ||
| {{Root}} | | {{Root}} | ||
| sys_npdrm_check_ekc | | sys_npdrm_check_ekc | ||
| int syscall 470 ( | | int syscall 470 (uint32_t type?, void* npd? [0x60]) | ||
|- | |- | ||
| 471 | | 471 | ||
Line 2,949: | Line 2,934: | ||
| int syscall_471(uint32_t type, char* titleID, void* klicensee, uint8_t* actdat, uint8_t* rif, int32_t licenseType, uint8_t* magicVersion);<!--//The function has different parameters depending if the content is debug, free or paid: | | int syscall_471(uint32_t type, char* titleID, void* klicensee, uint8_t* actdat, uint8_t* rif, int32_t licenseType, uint8_t* magicVersion);<!--//The function has different parameters depending if the content is debug, free or paid: | ||
FREE: syscall471(npd.type, &npd.titleID, freeklicensee, NULL, NULL, npd.license, &npd); | FREE: syscall471(npd.type, &npd.titleID, freeklicensee, NULL, NULL, npd.license, &npd); | ||
PAID: syscall471(npd.type, &npd.titleID, NULL, &actdat.keyTable[rif.actDatIndex], &rif.key, npd.license, &npd) | PAID: syscall471(npd.type, &npd.titleID, NULL, &actdat.keyTable[rif.actDatIndex], &rif.key, npd.license, &npd);//--> | ||
|- | |- | ||
| 472 | | 472 | ||
Line 2,977: | Line 2,961: | ||
| {{DECR}} {{DEX}} {{CEX}} | | {{DECR}} {{DEX}} {{CEX}} | ||
| {{Root}} | | {{Root}} | ||
| | | | ||
| int syscall_475( | | int syscall_475(uint32_t type, void* npd?, void* klicensee, uint8_t* actdat, uint8_t* rif, uint8_t magicVersion) | ||
|- | |- | ||
| 476 | | 476 | ||
Line 4,172: | Line 4,156: | ||
| | | | ||
| sys_rsxaudio_initialize | | sys_rsxaudio_initialize | ||
| int sys_rsxaudio_initialize( | | int sys_rsxaudio_initialize(out:uint8[4]) | ||
|- | |- | ||
| 651 | | 651 | ||
Line 4,179: | Line 4,163: | ||
| | | | ||
| sys_rsxaudio_finalize | | sys_rsxaudio_finalize | ||
| | | 1 Params | ||
|- | |- | ||
| 652 | | 652 | ||
Line 4,186: | Line 4,170: | ||
| | | | ||
| sys_rsxaudio_import_shared_memory | | sys_rsxaudio_import_shared_memory | ||
| | | 2 Params | ||
|- | |- | ||
| 653 | | 653 | ||
Line 4,193: | Line 4,177: | ||
| | | | ||
| sys_rsxaudio_unimport_shared_memory | | sys_rsxaudio_unimport_shared_memory | ||
| | | 2 Params | ||
|- | |- | ||
| 654 | | 654 | ||
Line 4,885: | Line 4,869: | ||
| | | | ||
| sys_fs_lsn_lock | | sys_fs_lsn_lock | ||
| int sys_fs_lsn_lock(int | | int sys_fs_lsn_lock(int) | ||
|- | |- | ||
| 828 | | 828 | ||
Line 4,892: | Line 4,876: | ||
| | | | ||
| sys_fs_lsn_unlock | | sys_fs_lsn_unlock | ||
| int sys_fs_lsn_unlock(int | | int sys_fs_lsn_unlock(int) | ||
|- | |- | ||
| 829 | | 829 | ||
Line 5,173: | Line 5,157: | ||
| {{dbg}} | | {{dbg}} | ||
| sys_ss_access_control_engine | | sys_ss_access_control_engine | ||
| 3 params | | 3 params | ||
( | (1,sys_pid_t,out:uint8_t [8]) | ||
( | (2,out:uint8_t [8],0) // returns [[Authentication_IDs]] | ||
( | (3,out:uint8_t [8],0) | ||
|- | |- | ||
| 872 | | 872 | ||
Line 5,721: | Line 5,705: | ||
| | | | ||
| sys_dbg_get_lwcond_information | | sys_dbg_get_lwcond_information | ||
| int sys_dbg_get_lwcond_information (sys_pid_t id, sys_lwcond_pseudo_id_t id, sys_dbg_lwcond_information_t* info ) | | int sys_dbg_get_lwcond_information (sys_pid_t id, sys_lwcond_pseudo_id_t id, sys_dbg_lwcond_information_t* info ) | ||
|- | |- | ||
| 952 | | 952 |