Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/include Move the cpu_reset_address() declarati...



details:   https://anonhg.NetBSD.org/src/rev/95967333b5b3
branches:  trunk
changeset: 954105:95967333b5b3
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Mar 29 03:07:33 2021 +0000

description:
Move the cpu_reset_address() declaration inside #ifdef _KERNEL, add a
comment.

diffstat:

 sys/arch/mips/include/db_machdep.h |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 8069eb033d72 -r 95967333b5b3 sys/arch/mips/include/db_machdep.h
--- a/sys/arch/mips/include/db_machdep.h        Mon Mar 29 03:03:48 2021 +0000
+++ b/sys/arch/mips/include/db_machdep.h        Mon Mar 29 03:07:33 2021 +0000
@@ -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 *, ...));
 
+
+#ifdef _KERNEL
+/*
+ * Optional function to perform machine- or cpu-specific reset.
+ * Called from ddb "machine reset".
+ */
 extern void (*cpu_reset_address)(void);
 
-#ifdef _KERNEL
 /*
  * We have machine-dependent commands.
  */



Home | Main Index | Thread Index | Old Index