summaryrefslogtreecommitdiff
path: root/include/user
diff options
context:
space:
mode:
authorReiko Asakura2020-05-23 12:33:10 -0400
committerReiko Asakura2020-05-23 12:33:10 -0400
commit00cdecc530060219e09650cabc066d78d6d92c11 (patch)
treecf81b602753837394f6b8586ffc27dcf37caaa0c /include/user
parentAdd prototype "sceAppMgrGetBudgetInfo" (diff)
downloadvds-libraries-00cdecc530060219e09650cabc066d78d6d92c11.tar.gz
kernel fast mutex: add and fix all related
1. Renamed sceKernelDeleteFastMutex to sceKernelFinalizeFastMutex. This matches the name found in 0.940 prototype firmware and the NID has not changed since then. 2. Unlike lightweight mutex, the work area is not required to be 8 byte aligned, but I have done so anyway. 3. The work area's size is 0x40, but only 0x28 is used. However it is not safe to use a smaller work area because sceKernelFinalizeFastMutex memsets 0x40 bytes to 0. 4. The last field of the work area, 4 bytes long at offset 0x24, contains the dummy value 0xA35DB473 when the fast mutex is initialised. Functions in SceKernelThreadmgr related to fast mutex will check this value and this allows us to find all functions related to fast mutex.
Diffstat (limited to 'include/user')
0 files changed, 0 insertions, 0 deletions