separate the requirements for OSF1 compat from NetBSD's
This commit is contained in:
parent
75299da6ed
commit
0baafe8595
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: compat_16_machdep.c,v 1.3 2003/10/13 22:19:15 nathanw Exp $ */
|
||||
/* $NetBSD: compat_16_machdep.c,v 1.4 2005/01/17 20:13:25 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
|
@ -88,7 +88,7 @@
|
|||
#include <machine/cpu.h>
|
||||
#include <machine/reg.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.3 2003/10/13 22:19:15 nathanw Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.4 2005/01/17 20:13:25 drochner Exp $");
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
|
@ -102,7 +102,6 @@ __KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.3 2003/10/13 22:19:15 nathan
|
|||
/*
|
||||
* Send an interrupt to process, old style
|
||||
*/
|
||||
#ifdef COMPAT_16
|
||||
void
|
||||
sendsig_sigcontext(const ksiginfo_t *ksi, const sigset_t *mask)
|
||||
{
|
||||
|
@ -149,7 +148,7 @@ sendsig_sigcontext(const ksiginfo_t *ksi, const sigset_t *mask)
|
|||
/* Save signal mask. */
|
||||
frame.sf_sc.sc_mask = *mask;
|
||||
|
||||
#ifdef COMPAT_13
|
||||
#if defined(COMPAT_13) || defined(COMPAT_OSF1)
|
||||
/*
|
||||
* XXX We always have to save an old style signal mask because
|
||||
* XXX we might be delivering a signal to a process which will
|
||||
|
@ -165,12 +164,6 @@ sendsig_sigcontext(const ksiginfo_t *ksi, const sigset_t *mask)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef COMPAT_OSF1
|
||||
/*
|
||||
* XXX Create an OSF/1-style sigcontext and associated goo.
|
||||
*/
|
||||
#endif
|
||||
|
||||
if (copyout(&frame, (caddr_t)fp, sizeof(frame)) != 0) {
|
||||
/*
|
||||
* Process has trashed its stack; give it an illegal
|
||||
|
@ -233,8 +226,8 @@ sendsig_sigcontext(const ksiginfo_t *ksi, const sigset_t *mask)
|
|||
p->p_pid, sig);
|
||||
#endif
|
||||
}
|
||||
#endif /* COMPAT_16 */
|
||||
#ifdef COMPAT_16
|
||||
|
||||
#ifdef COMPAT_16 /* not needed if COMPAT_OSF1 only */
|
||||
/*
|
||||
* System call to cleanup state after a signal
|
||||
* has been taken. Reset signal mask and
|
||||
|
|
Loading…
Reference in New Issue