Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/amiga Power down only if RB_POWERDOWN. Notice...
details: https://anonhg.NetBSD.org/src/rev/9694d8293084
branches: trunk
changeset: 784446:9694d8293084
user: rkujawa <rkujawa%NetBSD.org@localhost>
date: Mon Jan 28 16:36:10 2013 +0000
description:
Power down only if RB_POWERDOWN. Noticed by phx@ .
diffstat:
sys/arch/amiga/amiga/machdep.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r eea6edff53f2 -r 9694d8293084 sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c Mon Jan 28 16:08:02 2013 +0000
+++ b/sys/arch/amiga/amiga/machdep.c Mon Jan 28 16:36:10 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.240 2013/01/28 14:53:33 rkujawa Exp $ */
+/* $NetBSD: machdep.c,v 1.241 2013/01/28 16:36:10 rkujawa Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -50,7 +50,7 @@
#include "empm.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.240 2013/01/28 14:53:33 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.241 2013/01/28 16:36:10 rkujawa Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -430,14 +430,16 @@
if (howto & RB_DUMP)
dumpsys();
- if (howto & RB_HALT) {
#if NEMPM > 0
+ if (howto & RB_POWERDOWN) {
empmdev = device_find_by_xname("empm0");
if (empmdev != NULL) {
empm_power_off(device_private(empmdev));
}
+ }
#endif /* NEMPM > 0 */
+ if (howto & RB_HALT) {
printf("\n");
printf("The operating system has halted.\n");
printf("Please press any key to reboot.\n\n");
Home |
Main Index |
Thread Index |
Old Index