Editing 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 1: | Line 1: | ||
<!--// todo : needs to be tabled like the PS3 one | <!--// todo : needs to be tabled like the PS3 one | ||
http://fxr.watson.org/fxr/source/sys/syscall.h?v= | 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 == | |||
== Functions of | |||
Known calls include those relating to: | |||
# Modules | # Modules | ||
# Memory | # Memory | ||
# | # Sandboxing | ||
# Semaphores | # Semaphores | ||
Other | Other potential calls could be for: | ||
# Mutexes | |||
Other operations, such as file IO and networking are handled through regular FreeBSD system calls. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! | ! Number !! Prototype !! Notes !! | ||
|- | |- | ||
| | | 533 || - || - | ||
|- | |- | ||
| | | 534 || - || - | ||
|- | |- | ||
| | | 535 || - || - | ||
|- | |- | ||
| | | 536 || - || - | ||
|- | |- | ||
| | | 537 || - || - | ||
|- | |- | ||
| | | 538 || - || - | ||
|- | |- | ||
| | | 539 || - || - | ||
|- | |- | ||
| | | 540 || - || - | ||
|- | |- | ||
| | | 541 || - || - | ||
|- | |- | ||
| | | 542 || - || - | ||
|- | |- | ||
| | | 543 || - || - | ||
|- | |- | ||
| | | 544 || - || - | ||
|- | |- | ||
| | | 545 || - || - | ||
|- | |- | ||
| | | 546 || - || - | ||
|- | |- | ||
| | | 547 || - || - | ||
|- | |- | ||
| | | 548 || - || - | ||
|- | |- | ||
| | | 549 || - || - | ||
|- | |- | ||
| | | 550 || - || - | ||
|- | |- | ||
| | | 551 || - || - | ||
|- | |- | ||
| | | 552 || - || - | ||
|- | |- | ||
| | | 553 || - || - | ||
|- | |- | ||
| | | 554 || - || - | ||
|- | |- | ||
| | | 555 || - || - | ||
|- | |- | ||
| | | 556 || - || - | ||
|- | |- | ||
| | | 557 || - || - | ||
|- | |- | ||
| | | 558 || - || - | ||
|- | |- | ||
| | | 559 || - || - | ||
|- | |- | ||
| | | 560 || - || - | ||
|- | |- | ||
| | | 561 || - || - | ||
|- | |- | ||
| | | 562 || - || - | ||
|- | |- | ||
| | | 563 || - || - | ||
|- | |- | ||
| | | 564 || - || - | ||
|- | |- | ||
| | | 565 || - || - | ||
|- | |- | ||
| | | 566 || - || - | ||
|- | |- | ||
| | | 567 || - || - | ||
|- | |- | ||
| | | 568 || - || - | ||
|- | |- | ||
| | | 569 || - || - | ||
|- | |- | ||
| | | 570 || - || - | ||
|- | |- | ||
| | | 571 || - || - | ||
|- | |- | ||
| | | 572 || - || - | ||
|- | |- | ||
| | | 573 || - || - | ||
|- | |- | ||
| | | 574 || - || - | ||
|- | |- | ||
| | | 575 || - || - | ||
|- | |- | ||
| | | 576 || - || - | ||
|- | |- | ||
| | | 577 || - || - | ||
|- | |- | ||
| | | 578 || - || - | ||
|- | |- | ||
| | | 579 || - || - | ||
|- | |- | ||
| | | 580 || - || - | ||
|- | |- | ||
| | | 581 || - || - | ||
|- | |- | ||
| | | 582 || - || - | ||
|- | |- | ||
| | | 583 || - || - | ||
|- | |- | ||
| | | 584 || - || - | ||
|- | |- | ||
| | | 585 || - || - | ||
|- | |- | ||
| | | 586 || - || - | ||
|- | |- | ||
| | | 587 || - || - | ||
|- | |- | ||
| | | 588 || - || - | ||
|- | |- | ||
| | | 589 || - || - | ||
|- | |- | ||
| | | 590 || - || - | ||
|- | |- | ||
| | | 591 || - || - | ||
|- | |- | ||
| | | 592 || - || - | ||
|- | |- | ||
| | | 593 || - || - | ||
|- | |- | ||
| | | 594 || - || - | ||
|- | |- | ||
| | | 595 || - || - | ||
|- | |- | ||
| | | 596 || - || - | ||
|- | |- | ||
| | | 597 || - || - | ||
|- | |- | ||
| | | 598 || - || - | ||
|- | |- | ||
| | | 599 || - || - | ||
|- | |- | ||
| | | 600 || - || - | ||
|- | |- | ||
| | | 601 || - || - | ||
|- | |- | ||
| | | 602 || - || - | ||
|- | |- | ||
| | | 603 || - || - | ||
|- | |- | ||
| | | 604 || - || - | ||
|- | |- | ||
| | | 605 || - || - | ||
|- | |- | ||
| | | 606 || - || - | ||
|- | |- | ||
| | | 607 || - || - | ||
|- | |- | ||
| | | 608 || - || - | ||
|- | |- | ||
| | | 609 || - || - | ||
|- | |- | ||
| | | 610 || - || - | ||
|- | |- | ||
| | | 611 || - || - | ||
|- | |- | ||
| | | 612 || - || - | ||
|- | |- | ||
| | | 613 || - || - | ||
|- | |- | ||
| | | 614 || - || - | ||
|- | |- | ||
| | | 615 || - || - | ||
|- | |- | ||
| | | 616 || - || - | ||
|- | |- | ||
| | | 617 || - || - | ||
|- | |- | ||
|} | |} | ||
{{Reverse Engineering}} | {{Reverse Engineering}} | ||
<noinclude>[[Category:Main]]</noinclude> | <noinclude>[[Category:Main]]</noinclude> |