Module Name:    src
Committed By:   simonb
Date:           Thu Sep  3 07:05:30 UTC 2020

Modified Files:
        src/sys/arch/pmax/pmax: machdep.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.251 -r1.252 src/sys/arch/pmax/pmax/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/pmax/pmax/machdep.c
diff -u src/sys/arch/pmax/pmax/machdep.c:1.251 src/sys/arch/pmax/pmax/machdep.c:1.252
--- src/sys/arch/pmax/pmax/machdep.c:1.251	Thu Dec 22 14:47:58 2016
+++ src/sys/arch/pmax/pmax/machdep.c	Thu Sep  3 07:05:30 2020
@@ -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 @@ mach_init(int argc, int32_t *argv32, int
 		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;
 

Reply via email to