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