Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 style



details:   https://anonhg.NetBSD.org/src/rev/d85116aceb33
branches:  trunk
changeset: 826101:d85116aceb33
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Aug 15 08:57:19 2017 +0000

description:
style

diffstat:

 sys/arch/x86/x86/kgdb_machdep.c |  28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diffs (88 lines):

diff -r e74949dc046e -r d85116aceb33 sys/arch/x86/x86/kgdb_machdep.c
--- a/sys/arch/x86/x86/kgdb_machdep.c   Tue Aug 15 08:52:41 2017 +0000
+++ b/sys/arch/x86/x86/kgdb_machdep.c   Tue Aug 15 08:57:19 2017 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: kgdb_machdep.c,v 1.1 2017/08/15 08:51:38 maxv Exp $    */
+/*     $NetBSD: kgdb_machdep.c,v 1.2 2017/08/15 08:57:19 maxv Exp $    */
 
-/*-
- * Copyright (c) 1997 The NetBSD Foundation, Inc.
+/*
+ * Copyright (c) 1997, 2017 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kgdb_machdep.c,v 1.1 2017/08/15 08:51:38 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kgdb_machdep.c,v 1.2 2017/08/15 08:57:19 maxv Exp $");
 
 #include "opt_ddb.h"
 
@@ -92,14 +92,14 @@
                else
                        pte = kvtopte(va);
                if ((*pte & PG_V) == 0)
-                       return (0);
+                       return 0;
                if (*pte & PG_PS)
                        va = (va & PG_LGFRAME) + NBPD_L2;
                else
                        va += PAGE_SIZE;
        } while (va < last_va);
 
-       return (1);
+       return 1;
 }
 
 void
@@ -118,25 +118,25 @@
 {
        switch (type) {
        case T_NMI:
-               return (SIGINT);
+               return SIGINT;
 
        case T_ALIGNFLT:
-               return (SIGILL);
+               return SIGILL;
 
        case T_BPTFLT:
        case T_TRCTRAP:
-               return (SIGTRAP);
+               return SIGTRAP;
 
        case T_ASTFLT:
        case T_DOUBLEFLT:
-               return (SIGEMT);
+               return SIGEMT;
 
        case T_ARITHTRAP:
        case T_DIVIDE:
        case T_OFLOW:
        case T_DNA:
        case T_FPOPFLT:
-               return (SIGFPE);
+               return SIGFPE;
 
        case T_PRIVINFLT:
        case T_PROTFLT:
@@ -144,13 +144,13 @@
        case T_TSSFLT:
        case T_SEGNPFLT:
        case T_STKFLT:
-               return (SIGSEGV);
+               return SIGSEGV;
 
        case T_BOUND:
-               return (SIGURG);
+               return SIGURG;
 
        default:
-               return (SIGEMT);
+               return SIGEMT;
        }
 }
 



Home | Main Index | Thread Index | Old Index