add arm asm for vfork
authorPatrick Oppenlander <patrick.oppenlander@gmail.com>
Tue, 10 Apr 2018 01:01:25 +0000 (11:01 +1000)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:29 +0000 (14:34 -0400)
src/process/arm/vfork.s [new file with mode: 0644]

diff --git a/src/process/arm/vfork.s b/src/process/arm/vfork.s
new file mode 100644 (file)
index 0000000..ed1f87a
--- /dev/null
@@ -0,0 +1,13 @@
+.syntax unified
+.global __vfork
+.weak vfork
+.type __vfork,%function
+.type vfork,%function
+__vfork:
+vfork:
+       mov ip, r7
+       mov r7, 190
+       svc 0
+       mov r7, ip
+       .hidden __syscall_ret
+       b __syscall_ret