diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-06-07 12:16:28 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-06-07 12:16:28 +0000 |
commit | cbfb9638ec567de04c3edfc30ec6330aba5a4865 (patch) | |
tree | 66a70e5243feb919a27ccab93ae4e5c7155b069b /sys/arch/amd64 | |
parent | 04017e9dbfe2df7961ed665add43b3e722a52096 (diff) |
Add a default panic case to a switch statement where code after assumes
one of the cases was reached. Matches other parts of the mpbios code.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/mpbios.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/mpbios.c b/sys/arch/amd64/amd64/mpbios.c index 5c083546a10..eac82d43701 100644 --- a/sys/arch/amd64/amd64/mpbios.c +++ b/sys/arch/amd64/amd64/mpbios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpbios.c,v 1.24 2014/12/09 06:58:28 doug Exp $ */ +/* $OpenBSD: mpbios.c,v 1.25 2015/06/07 12:16:27 jsg Exp $ */ /* $NetBSD: mpbios.c,v 1.7 2003/05/15 16:32:50 fvdl Exp $ */ /*- @@ -1019,6 +1019,8 @@ mpbios_int(const u_int8_t *ent, int enttype, struct mp_intr_map *mpi) case MPS_INTTYPE_NMI: mpb = &nmi_bus; break; + default: + panic("unknown MPS interrupt type %d", entry->int_type); } mpi->bus = mpb; mpi->bus_pin = dev; |