Syscalls: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
(Created page with "http://fxr.watson.org/fxr/source/sys/syscall.h?v=FREEBSD9 / http://fxr.watson.org/fxr/source/kern/syscalls.master?v=FREEBSD9 <!--// todo : needs to be tabled like the PS3 one...")
 
m (moved from System_calls page, thanks CTurt)
Line 1: Line 1:
http://fxr.watson.org/fxr/source/sys/syscall.h?v=FREEBSD9 / http://fxr.watson.org/fxr/source/kern/syscalls.master?v=FREEBSD9
<!--// todo : needs to be tabled like the PS3 one
http://fxr.watson.org/fxr/source/sys/syscall.h?v=FREEBSD9
http://fxr.watson.org/fxr/source/kern/syscalls.master?v=FREEBSD9
//-->
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.


<!--// todo : needs to be tabled like the PS3 one //-->


{{Reverse Engineering}}
{{Reverse Engineering}}
<noinclude>[[Category:Main]]</noinclude>
<noinclude>[[Category:Main]]</noinclude>

Revision as of 12:26, 29 July 2015

PS4 kernel is based on FreeBSD 9.0; a list of FreeBSD 9.0 system calls can be found 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:

  1. Modules
  2. Memory
  3. Sandboxing
  4. Semaphores

Other potential calls could be for:

  1. Mutexes

Other operations, such as file IO and networking are handled through regular FreeBSD system calls.