X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/tools/tests/execperf/exit-asm.S?ds=sidebyside diff --git a/tools/tests/execperf/exit-asm.S b/tools/tests/execperf/exit-asm.S index ba63101e4..ed92a1323 100644 --- a/tools/tests/execperf/exit-asm.S +++ b/tools/tests/execperf/exit-asm.S @@ -1,6 +1,7 @@ .text - .globl mystart -mystart: + .align 2 + .globl _main +_main: #if defined(__x86_64__) pushq $0 mov %rsp, %rbp @@ -37,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