diff options
author | Ian Moffett <ian@osmora.org> | 2024-12-20 03:58:38 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-12-20 04:00:41 -0500 |
commit | 6695df157d714567f938170c0bdcae5e4dcb1695 (patch) | |
tree | bbdf61221de1ecf1309f625812d7e7e64d77cb55 /sys | |
parent | bdbf3af5b918c8a2a930927f8d146db1645aa785 (diff) |
kernel/amd64: backtrace() -> md_backtrace()
Maintain naming consistency between public machine-dependent and
machine-independent functions.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 2 | ||||
-rw-r--r-- | sys/include/sys/panic.h | 2 | ||||
-rw-r--r-- | sys/kern/kern_panic.c | 2 |
3 files changed, 3 insertions, 3 deletions
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(); |