]> git.saurik.com Git - apple/xnu.git/blob - tools/tests/execperf/exit.c
xnu-2422.90.20.tar.gz
[apple/xnu.git] / tools / tests / execperf / exit.c
1 #include <stdlib.h>
2
3 void mystart(void) __asm__("mystart");
4
5 void mystart(void) {
6 #if defined(__x86_64__)
7 asm volatile ("andq $0xfffffffffffffff0, %rsp\n");
8 #elif defined(__i386__)
9 asm volatile ("andl $0xfffffff0, %esp\n");
10 #else
11 #error Unsupported architecture
12 #endif
13 _Exit(42);
14 }