Mon Mar 29 03:07:33 2021 UTC ()
Move the cpu_reset_address() declaration inside #ifdef _KERNEL, add a
comment.


(simonb)
diff -r1.35 -r1.36 src/sys/arch/mips/include/db_machdep.h

cvs diff -r1.35 -r1.36 src/sys/arch/mips/include/db_machdep.h (expand / switch to context diff)
--- src/sys/arch/mips/include/db_machdep.h 2021/03/29 03:03:48 1.35
+++ src/sys/arch/mips/include/db_machdep.h 2021/03/29 03:07:33 1.36
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.h,v 1.35 2021/03/29 03:03:48 simonb Exp $ */
+/* $NetBSD: db_machdep.h,v 1.36 2021/03/29 03:07:33 simonb Exp $ */
 
 /*
  * Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -128,9 +128,14 @@
 void db_resume_others(void);
 void db_mips_stack_trace(void *, void *, void (*pr)(const char *, ...));
 
-extern void (*cpu_reset_address)(void);
 
 #ifdef _KERNEL
+/*
+ * Optional function to perform machine- or cpu-specific reset.
+ * Called from ddb "machine reset".
+ */
+extern void (*cpu_reset_address)(void);
+
 /*
  * We have machine-dependent commands.
  */