[klibc] [klibc:master] parisc: Fix vfork()
klibc-bot for Ben Hutchings
ben at decadent.org.uk
Sun Jan 20 20:00:03 PST 2019
Commit-ID: b71dd57f6a784962681ac05aa686b28db8668609
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=b71dd57f6a784962681ac05aa686b28db8668609
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Mon, 21 Jan 2019 03:55:35 +0000
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Mon, 21 Jan 2019 03:55:35 +0000
[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 at decadent.org.uk>
---
usr/klibc/arch/parisc/vfork.S | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/usr/klibc/arch/parisc/vfork.S b/usr/klibc/arch/parisc/vfork.S
index 97ebc8f..3868a8d 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, at function
vfork:
/* pid_t vfork(void) */
+ ldi 113,%r20
ble 0x100(%sr2, %r0) ; jump to gateway page
nop
More information about the klibc
mailing list