From: Richard Henderson <rth@redhat.com>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [alpha] emulate osf/1 sys_indirect
Date: Wed, 21 Nov 2001 16:30:11 -0800 [thread overview]
Message-ID: <20011121163011.A793@redhat.com> (raw)
Noticed that Netscape wanted to use it.
r~
--- arch/alpha/kernel/entry.S.orig Wed Nov 21 15:59:16 2001
+++ arch/alpha/kernel/entry.S Wed Nov 21 16:22:09 2001
@@ -488,6 +488,26 @@ entUnaUser:
.end entUnaUser
/*
+ * No idea why OSF/1 didn't implement syscall(3) in userland.
+ * Implement this by shifting the registers around, backing up
+ * the pc to the callsys, and returning to usermode.
+ */
+.align 3
+.ent sys_indirect
+sys_indirect:
+ ldq $1, SP_OFF+8($30)
+ stq $16, 0($30)
+ stq $17, SP_OFF+24($30)
+ stq $18, SP_OFF+32($30)
+ stq $19, SP_OFF+40($30)
+ stq $20, 72($30)
+ stq $21, 80($30)
+ subq $1, 4, $1
+ stq $1, SP_OFF+8($30)
+ br restore_all
+.end sys_indirect
+
+/*
* A fork is the same as clone(SIGCHLD, 0);
*/
.align 3
@@ -765,7 +785,7 @@ sys_rt_sigsuspend:
.align 3
.globl sys_call_table
sys_call_table:
- .quad alpha_ni_syscall /* 0 */
+ .quad sys_indirect /* 0 */
.quad sys_exit
.quad sys_fork
.quad sys_read
reply other threads:[~2001-11-22 0:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011121163011.A793@redhat.com \
--to=rth@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.