Panic if the emulation type is invalid.

This commit is contained in:
mycroft 1995-03-08 06:49:22 +00:00
parent e10c1980be
commit add762f71c
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.27 1995/03/08 06:46:03 mycroft Exp $ */
/* $NetBSD: trap.c,v 1.28 1995/03/08 06:50:02 mycroft Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -708,6 +708,10 @@ syscall(code, frame)
} else
p->p_md.md_flags &= ~MDP_STACKADJ;
break;
#endif
#ifdef DIAGNOSTIC
default:
panic("invalid p_emul %d", p->p_emul);
#endif
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.29 1995/03/08 06:39:06 mycroft Exp $ */
/* $NetBSD: trap.c,v 1.30 1995/03/08 06:49:22 mycroft Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -953,6 +953,10 @@ syscall(code, frame)
nsys = hpux_nsysent;
callp = hpux_sysent;
break;
#endif
#ifdef DIAGNOSTIC
default:
panic("invalid p_emul %d", p->p_emul);
#endif
}