diff options
| author | thorpej <thorpej@NetBSD.org> | 2022-07-21 01:52:28 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2022-07-21 01:52:28 +0000 |
| commit | 311765be01c55c80bdc8a76b258dee99ebfd2805 (patch) | |
| tree | d05c975b0af5d076d40c9b35ca0cddab7d5f5bcb /sys | |
| parent | 6a5ad45c0beb96b9582277fa5b9a6383975b3331 (diff) | |
Rename functions in previous in preparation for future changes.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/alpha/alpha/db_trace.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/alpha/alpha/db_trace.c b/sys/arch/alpha/alpha/db_trace.c index bef2817a0f1..00264167c72 100644 --- a/sys/arch/alpha/alpha/db_trace.c +++ b/sys/arch/alpha/alpha/db_trace.c @@ -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 @@ do { \ } static bool -sym_is_trapsymbol(vaddr_t v) +db_alpha_sym_is_trapsymbol(vaddr_t v) { int i; @@ -177,13 +177,13 @@ sym_is_trapsymbol(vaddr_t v) } 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 @@ trap_description(vaddr_t v) } 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 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count, * 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 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count, * 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; |
