make this compile again.

This commit is contained in:
christos 2004-07-07 23:28:28 +00:00
parent 77bfa3ce71
commit 663957c46f
1 changed files with 25 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: darwin_machdep.c,v 1.5 2003/09/25 22:01:31 christos Exp $ */
/* $NetBSD: darwin_machdep.c,v 1.6 2004/07/07 23:28:28 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: darwin_machdep.c,v 1.5 2003/09/25 22:01:31 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: darwin_machdep.c,v 1.6 2004/07/07 23:28:28 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -61,7 +61,7 @@ darwin_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
}
int
darwin_sys_sigreturn(l, v, retval)
darwin_sys_sigreturn_x2(l, v, retval)
struct lwp *l;
void *v;
register_t *retval;
@ -72,7 +72,29 @@ darwin_sys_sigreturn(l, v, retval)
} */ *uap = v;
printf("darwin_sys_sigreturn: uctx = %p\n", SCARG(uap, uctx));
return 0;
}
/*
* This is the version used starting with X.3 binaries
*/
int
darwin_sys_sigreturn(struct lwp *l, void *v, register_t *retval)
{
struct darwin_sys_sigreturn_args /* {
syscallarg(struct darwin_ucontext *) uctx;
syscallarg(int) ucvers;
} */ *uap = v;
switch (SCARG(uap, ucvers)) {
case /* DARWIN_UCVERS_X2 */ 1:
return darwin_sys_sigreturn_x2(l, v, retval);
default:
printf("darwin_sys_sigreturn: ucvers = %d\n",
SCARG(uap, ucvers));
break;
}
return 0;
}