Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 apply s/TRUE/true/; s/FALSE/false/; ...



details:   https://anonhg.NetBSD.org/src/rev/7ee6d87fe919
branches:  trunk
changeset: 764165:7ee6d87fe919
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Apr 13 03:29:03 2011 +0000

description:
apply s/TRUE/true/; s/FALSE/false/;.  needed for userland.

diffstat:

 sys/arch/sparc64/sparc64/db_interface.c |  24 ++++++++++++------------
 sys/arch/sparc64/sparc64/db_trace.c     |  22 +++++++++++-----------
 2 files changed, 23 insertions(+), 23 deletions(-)

diffs (156 lines):

diff -r a1ceafae4dc0 -r 7ee6d87fe919 sys/arch/sparc64/sparc64/db_interface.c
--- a/sys/arch/sparc64/sparc64/db_interface.c   Wed Apr 13 03:25:35 2011 +0000
+++ b/sys/arch/sparc64/sparc64/db_interface.c   Wed Apr 13 03:29:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.126 2011/01/14 02:06:32 rmind Exp $ */
+/*     $NetBSD: db_interface.c,v 1.127 2011/04/13 03:29:03 mrg Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.126 2011/01/14 02:06:32 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.127 2011/04/13 03:29:03 mrg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -491,12 +491,12 @@
 
        s = splhigh();
        db_active++;
-       cnpollc(TRUE);
+       cnpollc(true);
        /* Need to do spl stuff till cnpollc works */
        db_dump_ts(0, 0, 0, 0);
        db_trap(type, 0/*code*/);
        ddb_restore_state();
-       cnpollc(FALSE);
+       cnpollc(false);
        db_active--;
 
        splx(s);
@@ -1370,7 +1370,7 @@
     insn.i_int = inst;
 
     if (insn.i_any.i_op != IOP_OP2)
-       return FALSE;
+       return false;
 
     switch (insn.i_op2.i_op2) {
       case IOP2_BPcc:
@@ -1379,10 +1379,10 @@
       case IOP2_FBPfcc:
       case IOP2_FBfcc:
       case IOP2_CBccc:
-       return TRUE;
+       return true;
 
       default:
-       return FALSE;
+       return false;
     }
 }
 
@@ -1396,13 +1396,13 @@
 
     switch (insn.i_any.i_op) {
       case IOP_CALL:
-       return TRUE;
+       return true;
 
       case IOP_reg:
        return (insn.i_op3.i_op3 == IOP3_JMPL) && !db_inst_return(inst);
 
       default:
-       return FALSE;
+       return false;
     }
 }
 
@@ -1415,10 +1415,10 @@
     insn.i_int = inst;
 
     if (db_inst_call(inst))
-       return TRUE;
+       return true;
 
     if (insn.i_any.i_op != IOP_OP2)
-       return FALSE;
+       return false;
 
     switch (insn.i_op2.i_op2)
     {
@@ -1430,7 +1430,7 @@
        return insn.i_branch.i_cond == Icc_A;
 
       default:
-       return FALSE;
+       return false;
     }
 }
 
diff -r a1ceafae4dc0 -r 7ee6d87fe919 sys/arch/sparc64/sparc64/db_trace.c
--- a/sys/arch/sparc64/sparc64/db_trace.c       Wed Apr 13 03:25:35 2011 +0000
+++ b/sys/arch/sparc64/sparc64/db_trace.c       Wed Apr 13 03:29:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trace.c,v 1.44 2010/07/01 02:38:27 rmind Exp $ */
+/*     $NetBSD: db_trace.c,v 1.45 2011/04/13 03:29:03 mrg Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.44 2010/07/01 02:38:27 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.45 2011/04/13 03:29:03 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -61,21 +61,21 @@
        void            (*pr) (const char *, ...);
 {
        vaddr_t         frame;
-       bool            kernel_only = TRUE;
-       bool            trace_thread = FALSE;
-       bool            lwpaddr = FALSE;
+       bool            kernel_only = true;
+       bool            trace_thread = false;
+       bool            lwpaddr = false;
        char            c;
        const char      *cp = modif;
 
        while ((c = *cp++) != 0) {
                if (c == 'a') {
-                       lwpaddr = TRUE;
-                       trace_thread = TRUE;
+                       lwpaddr = true;
+                       trace_thread = true;
                }
                if (c == 't')
-                       trace_thread = TRUE;
+                       trace_thread = true;
                if (c == 'u')
-                       kernel_only = FALSE;
+                       kernel_only = false;
        }
 
        if (!have_addr)
@@ -282,13 +282,13 @@
 {
        int             i;
        uint64_t        frame, oldframe;
-       bool            kernel_only = TRUE;
+       bool            kernel_only = true;
        char            c;
        const char      *cp = modif;
 
        while ((c = *cp++) != 0)
                if (c == 'u')
-                       kernel_only = FALSE;
+                       kernel_only = false;
 
        if (count == -1)
                count = 65535;



Home | Main Index | Thread Index | Old Index