]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/execperf/exit-asm.S
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / tools / tests / execperf / exit-asm.S
index ba63101e4a99e43c0ce86f64e66a41cd06c2c91d..ed92a1323a20399088005604ed40999113971a12 100644 (file)
@@ -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