Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc PR 50516 bad switch case
details: https://anonhg.NetBSD.org/src/rev/a80dc52d123d
branches: trunk
changeset: 342184:a80dc52d123d
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Fri Dec 11 08:08:01 2015 +0000
description:
PR 50516 bad switch case
diffstat:
sys/arch/sparc/sparc/trap.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 81db794b5af4 -r a80dc52d123d sys/arch/sparc/sparc/trap.c
--- a/sys/arch/sparc/sparc/trap.c Fri Dec 11 08:04:20 2015 +0000
+++ b/sys/arch/sparc/sparc/trap.c Fri Dec 11 08:08:01 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.193 2015/10/04 08:19:40 joerg Exp $ */
+/* $NetBSD: trap.c,v 1.194 2015/12/11 08:08:01 mlelstv Exp $ */
/*
* Copyright (c) 1996
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.193 2015/10/04 08:19:40 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.194 2015/12/11 08:08:01 mlelstv Exp $");
#include "opt_ddb.h"
#include "opt_compat_svr4.h"
@@ -1254,9 +1254,11 @@
case EINVAL:
ksi.ksi_signo = SIGBUS;
ksi.ksi_code = BUS_ADRERR;
+ break;
case EACCES:
ksi.ksi_signo = SIGSEGV;
ksi.ksi_code = SEGV_ACCERR;
+ break;
default:
ksi.ksi_signo = SIGSEGV;
ksi.ksi_code = SEGV_MAPERR;
Home |
Main Index |
Thread Index |
Old Index