aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2002-02-01 15:44:03 +0000
committerBruce Evans <bde@FreeBSD.org>2002-02-01 15:44:03 +0000
commit55a9536b65c3ad7be8b1867d1bf99876606c0199 (patch)
tree4fa3b87f94af2c013a39398905d632cfdae879a0 /sys/sparc64
parent3b8a3187c8b8bf96be40c5dccfe4f51074aa494c (diff)
downloadsrc-55a9536b65c3ad7be8b1867d1bf99876606c0199.tar.gz
src-55a9536b65c3ad7be8b1867d1bf99876606c0199.zip
Compile osigreturn() unconditionally since it will always be needed on
some arches and the syscall table is machine-independent. It was (bogusly) conditional on COMPAT_43, so this usually makes no difference. ia64: in addition: - replace the bogus cloned comment before osigreturn() by a correct one. osigreturn() is just a stub fo ia64's. - fix the formatting of cloned comment before sigreturn(). - fix the return code. use nosys() instead of returning ENOSYS to get the same semantics as if the syscall is not in the syscall table. Generating SIGSYS is actually correct here. - fix style bugs. powerpc: copy the cleaned up ia64 stub. This mainly fixes a bogus comment. sparc64: copy the cleaned up the ia64 stub, since there was no stub before.
Notes
Notes: svn path=/head/; revision=90065
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/machdep.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c
index ebeb5d724b58..8e0d5780689b 100644
--- a/sys/sparc64/sparc64/machdep.c
+++ b/sys/sparc64/sparc64/machdep.c
@@ -446,6 +446,18 @@ sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
PROC_LOCK(p);
}
+/*
+ * Stub to satisfy the reference to osigreturn in the syscall table. This
+ * is needed even for newer arches that don't support old signals because
+ * the syscall table is machine-independent.
+ */
+int
+osigreturn(struct thread *td, struct osigreturn_args *uap)
+{
+
+ return (nosys(td, (struct nosys_args *)uap));
+}
+
#ifndef _SYS_SYSPROTO_H_
struct sigreturn_args {
ucontext_t *ucp;