Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Rename functions in previous in prepara...



details:   https://anonhg.NetBSD.org/src/rev/ae82f6cc6811
branches:  trunk
changeset: 368592:ae82f6cc6811
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 21 01:52:28 2022 +0000

description:
Rename functions in previous in preparation for future changes.

diffstat:

 sys/arch/alpha/alpha/db_trace.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (78 lines):

diff -r 94a2b3147c27 -r ae82f6cc6811 sys/arch/alpha/alpha/db_trace.c
--- a/sys/arch/alpha/alpha/db_trace.c   Wed Jul 20 22:58:35 2022 +0000
+++ b/sys/arch/alpha/alpha/db_trace.c   Thu Jul 21 01:52:28 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.31 2022/07/20 17:03:10 thorpej Exp $ */
+/* $NetBSD: db_trace.c,v 1.32 2022/07/21 01:52:28 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.31 2022/07/20 17:03:10 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.32 2022/07/21 01:52:28 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -166,7 +166,7 @@
 }
 
 static bool
-sym_is_trapsymbol(vaddr_t v)
+db_alpha_sym_is_trapsymbol(vaddr_t v)
 {
        int i;
 
@@ -177,13 +177,13 @@
 }
 
 static bool
-sym_is_backstop(vaddr_t v)
+db_alpha_sym_is_backstop(vaddr_t v)
 {
        return v == (vaddr_t)&alpha_kthread_backstop;
 }
 
 static const char *
-trap_description(vaddr_t v)
+db_alpha_trap_description(vaddr_t v)
 {
        int i;
 
@@ -194,7 +194,7 @@
 }
 
 static bool
-trap_is_syscall(vaddr_t v)
+db_alpha_trap_is_syscall(vaddr_t v)
 {
        return v == (vaddr_t)&XentSys;
 }
@@ -288,7 +288,7 @@
                 * backstop, then we are at the root of the call
                 * graph.
                 */
-               if (sym_is_backstop(symval)) {
+               if (db_alpha_sym_is_backstop(symval)) {
                        (*pr)("--- kernel thread backstop ---\n");
                        break;
                }
@@ -328,13 +328,13 @@
                 * If we are in a trap vector, frame points to a
                 * trapframe.
                 */
-               if (sym_is_trapsymbol(symval)) {
+               if (db_alpha_sym_is_trapsymbol(symval)) {
                        tf = (struct trapframe *)frame;
 
-                       (*pr)("--- %s", trap_description(symval));
+                       (*pr)("--- %s", db_alpha_trap_description(symval));
 
                        tfps = tf->tf_regs[FRAME_PS];
-                       if (trap_is_syscall(symval))
+                       if (db_alpha_trap_is_syscall(symval))
                                decode_syscall(tf->tf_regs[FRAME_V0], p, pr);
                        if ((tfps & ALPHA_PSL_IPL_MASK) != last_ipl) {
                                last_ipl = tfps & ALPHA_PSL_IPL_MASK;



Home | Main Index | Thread Index | Old Index