Syscalls: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
m (title)
m (disabled)
Line 42: Line 42:
| 536 || - ||  -
| 536 || - ||  -
|-
|-
| 537 || - || -
| 537 || disabled || always returns 0x4e
|-
|-
| 538 || - ||  -
| 538 || - ||  -
Line 104: Line 104:
| 567 || - ||  -
| 567 || - ||  -
|-
|-
| 568 || - || -
| 568 || disabled || always returns 0x4e
|-
|-
| 569 || - || -
| 569 || disabled || always returns 0x4e
|-
|-
| 570 || - || -
| 570 || disabled || always returns 0x4e
|-
|-
| 571 || - || -
| 571 || disabled || always returns 0x4e
|-
|-
| 572 || - ||  -
| 572 || - ||  -
|-
|-
| 573 || - || -
| 573 || disabled || always returns 0x4e
|-
|-
| 574 || - ||  -
| 574 || - ||  -
Line 146: Line 146:
| 588 || - ||  -
| 588 || - ||  -
|-
|-
| 589 || - || -
| 589 || disabled || always returns 0x4e
|-
|-
| 590 || - ||  -
| 590 || - ||  -
Line 186: Line 186:
| 608 || - ||  -
| 608 || - ||  -
|-
|-
| 609 || - || -
| 609 || disabled || always returns 0x4e
|-
|-
| 610 || - || -
| 610 || disabled || always returns 0x4e
|-
|-
| 611 || - ||  -
| 611 || - ||  -

Revision as of 15:24, 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.

Public system calls

Number Prototype Notes
533 - -
534 - -
535 - -
536 - -
537 disabled always returns 0x4e
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 disabled always returns 0x4e
569 disabled always returns 0x4e
570 disabled always returns 0x4e
571 disabled always returns 0x4e
572 - -
573 disabled always returns 0x4e
574 - -
575 - -
576 - -
577 - -
578 - -
579 - -
580 - -
581 - -
582 - -
583 - -
584 - -
585 - -
586 - -
587 - -
588 - -
589 disabled always returns 0x4e
590 - -
591 - -
592 - -
593 - -
594 - -
595 - -
596 - -
597 - -
598 - -
599 - -
600 - -
601 - -
602 - -
603 - -
604 - -
605 - -
606 - -
607 - -
608 - -
609 disabled always returns 0x4e
610 disabled always returns 0x4e
611 - -
612 - -
613 - -
614 - -
615 - -
616 - -
617 - -