This commit is contained in:
deraadt 1993-11-10 06:22:15 +00:00
parent d29e38973e
commit ac0ecd9194

View File

@ -44,7 +44,7 @@
* @(#)trap.c 8.1 (Berkeley) 6/16/93 * @(#)trap.c 8.1 (Berkeley) 6/16/93
* *
* from: Header: trap.c,v 1.34 93/05/28 04:34:50 torek Exp * from: Header: trap.c,v 1.34 93/05/28 04:34:50 torek Exp
* $Id: trap.c,v 1.5 1993/11/10 03:13:51 deraadt Exp $ * $Id: trap.c,v 1.6 1993/11/10 06:22:15 deraadt Exp $
*/ */
#include <sys/param.h> #include <sys/param.h>
@ -677,6 +677,10 @@ syscall(code, tf, pc)
u_quad_t sticks; u_quad_t sticks;
extern int nsysent; extern int nsysent;
extern struct pcb *cpcb; extern struct pcb *cpcb;
#ifdef COMPAT_SUNOS
extern int nsun_sysent;
extern struct sysent sun_sysent[];
#endif
cnt.v_syscall++; cnt.v_syscall++;
p = curproc; p = curproc;
@ -698,14 +702,13 @@ code, code);
code &= ~(SYSCALL_G7RFLAG | SYSCALL_G2RFLAG); code &= ~(SYSCALL_G7RFLAG | SYSCALL_G2RFLAG);
switch (p->p_emul) { switch (p->p_emul) {
case EMUL_NETBSD: case EMUL_NETBSD:
callp = sysent, nsys = nsysent; callp = sysent;
nsys = nsysent;
break; break;
#ifdef COMPAT_SUNOS #ifdef COMPAT_SUNOS
case EMUL_SUNOS: case EMUL_SUNOS:
extern int nsun_sysent; callp = sun_sysent;
extern struct sysent sun_sysent[]; nsys = nsun_sysent;
callp = sun_sysent, nsys = nsun_sysent;
break; break;
#endif #endif
} }