Editing System calls

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 1: Line 1:
#REDIRECT [[Syscalls]]
PS4 kernel is based on FreeBSD 9.0; a list of FreeBSD 9.0 system calls can be found [http://fxr.watson.org/fxr/source/kern/syscalls.master?v=FREEBSD9 here].
 
Compatibility system calls, and some others, have been disabled.
 
The first custom Sony system call comes immediately after the last FreeBSD system call, wait6, and is number 533.
 
The final custom Sony system call is 617.
 
Calling any system calls higher than 617 gives the same result as calling a compatibility or unimplemented system call, "There is not enough free system memory" error.
 
Of these 85 (617 - 532), 9 always return 0x4e, ENOSYS, leaving us with just 76 which are usable (the disabled 9 may only be callable from development units).
 
'''Functions of custom Sony system calls'''
 
Known calls include those relating to:
# Modules
# Memory
# Sandboxing
# Semaphores
 
Other potential calls could be for:
# Mutexes
 
Other operations, such as file IO and networking are handled through regular FreeBSD system calls.
Please note that all contributions to PS4 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS4 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)