summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-01 15:44:03 +0000
committerbde <bde@FreeBSD.org>2002-02-01 15:44:03 +0000
commit199578d7e8dd5f3e862d836d520b44843738e810 (patch)
tree4fa3b87f94af2c013a39398905d632cfdae879a0 /sys/amd64
parent71445fd2e0afffa649adf74ad07b0e1a30167fb1 (diff)
downloadFreeBSD-src-199578d7e8dd5f3e862d836d520b44843738e810.zip
FreeBSD-src-199578d7e8dd5f3e862d836d520b44843738e810.tar.gz
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.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/machdep.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 807ab20..0d23bcf 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -587,7 +587,6 @@ sendsig(catcher, sig, mask, code)
* make sure that the user has not modified the
* state to gain improper privileges.
*/
-#ifdef COMPAT_43
int
osigreturn(td, uap)
struct thread *td;
@@ -698,7 +697,6 @@ osigreturn(td, uap)
regs->tf_eflags = eflags;
return (EJUSTRETURN);
}
-#endif
int
sigreturn(td, uap)
OpenPOWER on IntegriCloud