Skip to content

Commit 05951ac

Browse files
authored
Update README to reflect new Apple syscall table link
Apple seems to have removed the XNU source code from the opensource.apple.com website. However they have an official github repository with the same content.
1 parent daf4340 commit 05951ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ To make "Hello World" run on Apple silicon, first the changes from page 78 (Chap
7272
To silence the warning, I insert `.align 4` (or `.p2align 2`), because Darwin likes things to be aligned on even boundaries. The books mentions this in Aligning Data in Chapter 5, page 114.
7373

7474
System calls in Linux and macOS have several differences due to the unique conventions of each system. Here are some key distinctions:
75-
* Function Number: The function numbers differ between the two systems, with Linux using 64 and macOS using 4. The table for Darwin (Apple) system calls can be found at this link: [Darwin System Calls](https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/kern/syscalls.master.auto.html). Please note that this is a specific version (the most recent at the time of writing), and newer versions can be found [here](https://opensource.apple.com/source/xnu/).
75+
* Function Number: The function numbers differ between the two systems, with Linux using 64 and macOS using 4. The table for Darwin (Apple) system calls can be found at this link: [Darwin System Calls](https://github.com/apple-oss-distributions/xnu/blob/main/bsd/kern/syscalls.master).
7676
> [!CAUTION]
7777
> Darwin function numbers are considered private by Apple, and are subject to change. They are provided here for educational purposes only
7878
* Address for Storing Function Numbers: The address used for storing function numbers also varies. In Linux, it’s on X8, while in macOS, it’s on X16.

0 commit comments

Comments
 (0)