Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips/cavium Rin Okuyama in PR port-evbmips/51563...
details: https://anonhg.NetBSD.org/src/rev/63417cb091e2
branches: trunk
changeset: 348482:63417cb091e2
user: martin <martin%NetBSD.org@localhost>
date: Thu Oct 20 07:26:03 2016 +0000
description:
Rin Okuyama in PR port-evbmips/51563: wait for console input after halting
the machine.
diffstat:
sys/arch/evbmips/cavium/machdep.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 5554c12ce17c -r 63417cb091e2 sys/arch/evbmips/cavium/machdep.c
--- a/sys/arch/evbmips/cavium/machdep.c Thu Oct 20 05:53:27 2016 +0000
+++ b/sys/arch/evbmips/cavium/machdep.c Thu Oct 20 07:26:03 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.7 2016/08/26 13:51:55 skrll Exp $ */
+/* $NetBSD: machdep.c,v 1.8 2016/10/20 07:26:03 martin Exp $ */
/*
* Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -114,7 +114,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.7 2016/08/26 13:51:55 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.8 2016/10/20 07:26:03 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -448,6 +448,9 @@
printf("\n");
printf("The operating system has halted.\n");
printf("Please press any key to reboot.\n\n");
+ cnpollc(1); /* For proper keyboard command handling */
+ cngetc();
+ cnpollc(0);
}
printf("%s\n\n", ((howto & RB_HALT) != 0) ? "halted." : "rebooting...");
Home |
Main Index |
Thread Index |
Old Index