From 6695df157d714567f938170c0bdcae5e4dcb1695 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 20 Dec 2024 03:58:38 -0500 Subject: kernel/amd64: backtrace() -> md_backtrace() Maintain naming consistency between public machine-dependent and machine-independent functions. Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/machdep.c | 2 +- sys/include/sys/panic.h | 2 +- sys/kern/kern_panic.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index f74feb1..f45eb68 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -132,7 +132,7 @@ backtrace_addr_to_name(uintptr_t addr, off_t *off) } void -backtrace(void) +md_backtrace(void) { uintptr_t *rbp; uintptr_t rip; diff --git a/sys/include/sys/panic.h b/sys/include/sys/panic.h index 9db6a1e..fbfc151 100644 --- a/sys/include/sys/panic.h +++ b/sys/include/sys/panic.h @@ -33,7 +33,7 @@ #if defined(_KERNEL) void panic(const char *fmt, ...); -void backtrace(void); +void md_backtrace(void); #endif /* _KERNEL */ #endif /* !_SYS_PANIC_H_ */ diff --git a/sys/kern/kern_panic.c b/sys/kern/kern_panic.c index af154a8..7ba9edb 100644 --- a/sys/kern/kern_panic.c +++ b/sys/kern/kern_panic.c @@ -54,7 +54,7 @@ panic(const char *fmt, ...) vkprintf(fmt, &ap); kprintf(OMIT_TIMESTAMP "** backtrace\n"); - backtrace(); + md_backtrace(); cpu_reboot(REBOOT_HALT); __builtin_unreachable(); -- cgit v1.2.3