Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/pmax Make DDB "machine reset" call emulate pus...



details:   https://anonhg.NetBSD.org/src/rev/fcfe962d1b78
branches:  trunk
changeset: 938138:fcfe962d1b78
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Sep 03 07:05:30 2020 +0000

description:
Make DDB "machine reset" call emulate pushing the HALT button.
Useful if DDB gets confused and "reboot" doesn't work.

diffstat:

 sys/arch/pmax/pmax/machdep.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 9c3e0198416d -r fcfe962d1b78 sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c      Thu Sep 03 06:42:29 2020 +0000
+++ b/sys/arch/pmax/pmax/machdep.c      Thu Sep 03 07:05:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.251 2016/12/22 14:47:58 cherry Exp $     */
+/*     $NetBSD: machdep.c,v 1.252 2020/09/03 07:05:30 simonb Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.251 2016/12/22 14:47:58 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.252 2020/09/03 07:05:30 simonb Exp $");
 
 #include "opt_ddb.h"
 #include "opt_modular.h"
@@ -211,6 +211,9 @@
                callv = &callvec;
        }
 
+       /* Make DDB "machine reset" call emulate pushing the HALT button. */
+       cpu_reset_address = prom_haltbutton;
+
        /* Use PROM console output until we initialize a console driver. */
        cn_tab = &promcd;
 



Home | Main Index | Thread Index | Old Index