aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/machdep.c2
-rw-r--r--sys/include/sys/panic.h2
-rw-r--r--sys/kern/kern_panic.c2
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();