X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/fe8ab488e9161c46dd9885d58fc52996dc0249ff..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/tools/tests/execperf/exit-asm.S diff --git a/tools/tests/execperf/exit-asm.S b/tools/tests/execperf/exit-asm.S index 2b65a52c9..ed92a1323 100644 --- a/tools/tests/execperf/exit-asm.S +++ b/tools/tests/execperf/exit-asm.S @@ -38,6 +38,24 @@ _sysenter_trap: mov %esp, %ecx sysenter nop +#elif defined(__arm__) + push { lr } + mov r0, #42 + mov r12, #1 + svc 0x00000080 + bcc 1f +1: + nop + nop + nop + nop +#elif defined(__arm64__) + movz x0, #42 + movz x16, #1 + svc #0x80 + b.cc 1f +1: + nop #else #error Unsupported architecture #endif