aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2019-01-21 03:55:35 +0000
committerBen Hutchings <ben@decadent.org.uk>2019-01-21 03:55:35 +0000
commitb71dd57f6a784962681ac05aa686b28db8668609 (patch)
tree52275165dc6cc53d33b347657c92e97d37c4b1da
parent11bd4ea5f3d960c4d208180deae91d88aa940149 (diff)
downloadklibc-b71dd57f6a784962681ac05aa686b28db8668609.tar.gz
[klibc] parisc: Fix vfork()
The caller does not pass any arguments, so we need to set the system call number ourselves. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--usr/klibc/arch/parisc/vfork.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/klibc/arch/parisc/vfork.S b/usr/klibc/arch/parisc/vfork.S
index 97ebc8f49c244..3868a8dd8f4a6 100644
--- a/usr/klibc/arch/parisc/vfork.S
+++ b/usr/klibc/arch/parisc/vfork.S
@@ -1,7 +1,7 @@
/*
* arch/parisc/vfork.S, "vfork() me harder. ugh." -- kyle
*
- * %r20 contains the system call number, %rp contains whence we came,
+ * %rp contains whence we came,
* %rp is saved and restored across the syscall, thankfully.
*
*/
@@ -12,6 +12,7 @@
.type vfork,@function
vfork:
/* pid_t vfork(void) */
+ ldi 113,%r20
ble 0x100(%sr2, %r0) ; jump to gateway page
nop