]> 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 2b65a52c93b9389476d73962c5566944cb27a3d1..ed92a1323a20399088005604ed40999113971a12 100644 (file)
@@ -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