diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-01-21 03:55:35 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-01-21 03:55:35 +0000 |
commit | b71dd57f6a784962681ac05aa686b28db8668609 (patch) | |
tree | 52275165dc6cc53d33b347657c92e97d37c4b1da | |
parent | 11bd4ea5f3d960c4d208180deae91d88aa940149 (diff) | |
download | klibc-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.S | 3 |
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 |