From add762f71c1406c6678a65e5fe7f7889dd433e62 Mon Sep 17 00:00:00 2001 From: mycroft Date: Wed, 8 Mar 1995 06:49:22 +0000 Subject: [PATCH] Panic if the emulation type is invalid. --- sys/arch/amiga/amiga/trap.c | 6 +++++- sys/arch/hp300/hp300/trap.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/arch/amiga/amiga/trap.c b/sys/arch/amiga/amiga/trap.c index 45f01eeed161..63c6601f84b0 100644 --- a/sys/arch/amiga/amiga/trap.c +++ b/sys/arch/amiga/amiga/trap.c @@ -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 } diff --git a/sys/arch/hp300/hp300/trap.c b/sys/arch/hp300/hp300/trap.c index a4f0887ba363..e0ef652266a5 100644 --- a/sys/arch/hp300/hp300/trap.c +++ b/sys/arch/hp300/hp300/trap.c @@ -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 }