Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/oea - add or adjust fallthru comments



details:   https://anonhg.NetBSD.org/src/rev/0e180fd24d93
branches:  trunk
changeset: 839044:0e180fd24d93
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Feb 06 07:32:50 2019 +0000

description:
- add or adjust fallthru comments

diffstat:

 sys/arch/powerpc/oea/cpu_subr.c    |  6 ++++--
 sys/arch/powerpc/oea/oea_machdep.c |  9 ++++-----
 2 files changed, 8 insertions(+), 7 deletions(-)

diffs (70 lines):

diff -r b66167b98a9c -r 0e180fd24d93 sys/arch/powerpc/oea/cpu_subr.c
--- a/sys/arch/powerpc/oea/cpu_subr.c   Wed Feb 06 07:31:38 2019 +0000
+++ b/sys/arch/powerpc/oea/cpu_subr.c   Wed Feb 06 07:32:50 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.98 2019/01/06 11:20:53 phx Exp $        */
+/*     $NetBSD: cpu_subr.c,v 1.99 2019/02/06 07:32:50 mrg Exp $        */
 
 /*-
  * Copyright (c) 2001 Matt Thomas.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.98 2019/01/06 11:20:53 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.99 2019/02/06 07:32:50 mrg Exp $");
 
 #include "opt_ppcparam.h"
 #include "opt_ppccache.h"
@@ -1133,6 +1133,7 @@
        case MPC7448:
                if (mfspr(SPR_HID1) & HID1_DFS4)
                        return 4;
+               /* FALLTHROUGH */
        case MPC7447A:
                if (mfspr(SPR_HID1) & HID1_DFS2)
                        return 2;
@@ -1155,6 +1156,7 @@
        switch (vers) {
        case MPC7448:
                dfs_mask |= HID1_DFS4;
+               /* FALLTHROUGH */
        case MPC7447A:
                dfs_mask |= HID1_DFS2;
                break;
diff -r b66167b98a9c -r 0e180fd24d93 sys/arch/powerpc/oea/oea_machdep.c
--- a/sys/arch/powerpc/oea/oea_machdep.c        Wed Feb 06 07:31:38 2019 +0000
+++ b/sys/arch/powerpc/oea/oea_machdep.c        Wed Feb 06 07:32:50 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: oea_machdep.c,v 1.75 2018/07/15 05:16:44 maxv Exp $    */
+/*     $NetBSD: oea_machdep.c,v 1.76 2019/02/06 07:32:50 mrg Exp $     */
 
 /*
  * Copyright (C) 2002 Matt Thomas
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.75 2018/07/15 05:16:44 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.76 2019/02/06 07:32:50 mrg Exp $");
 
 #include "opt_ppcarch.h"
 #include "opt_compat_netbsd.h"
@@ -260,15 +260,14 @@
 #if defined(DDB) || defined(KGDB)
                case EXC_RUNMODETRC:
 #ifdef PPC_OEA601
-                       if (cpuvers != MPC601) {
+                       if (cpuvers != MPC601)
 #endif
+                       {
                                size = (size_t)trapsize;
                                memcpy((void *)exc, trapcode, size);
                                break;
-#ifdef PPC_OEA601
                        }
                        /* FALLTHROUGH */
-#endif
                case EXC_PGM:
                case EXC_TRC:
                case EXC_BPT:



Home | Main Index | Thread Index | Old Index