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