diff --git a/X. NU/custom/mach_call_demo.c b/X. NU/custom/mach_call_demo.c new file mode 100644 index 0000000..6da2112 --- /dev/null +++ b/X. NU/custom/mach_call_demo.c @@ -0,0 +1,8 @@ +#include + +int main() { + mach_port_t port; + mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &port); + return 0; // Port allocation directly interacts with kernelspace +} + diff --git a/X. NU/custom/system_call_demo.c b/X. NU/custom/system_call_demo.c new file mode 100644 index 0000000..48751b8 --- /dev/null +++ b/X. NU/custom/system_call_demo.c @@ -0,0 +1,8 @@ +#include + +int main() { + const char *message = "Hello, Kernelspace!\n"; + write(1, message, 20); // Direct system call to write to stdout + return 0; +} + diff --git a/X. NU/mac/XNU_exception_handling_map.png b/X. NU/mac/XNU_exception_handling_map.png new file mode 100644 index 0000000..450b248 Binary files /dev/null and b/X. NU/mac/XNU_exception_handling_map.png differ