Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 fix RB_POWERDOWN test
details: https://anonhg.NetBSD.org/src/rev/728be5edab6b
branches: trunk
changeset: 341559:728be5edab6b
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Nov 11 14:50:08 2015 +0000
description:
fix RB_POWERDOWN test
diffstat:
sys/arch/arm/arm32/arm32_reboot.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6f5415238dce -r 728be5edab6b sys/arch/arm/arm32/arm32_reboot.c
--- a/sys/arch/arm/arm32/arm32_reboot.c Wed Nov 11 14:04:12 2015 +0000
+++ b/sys/arch/arm/arm32/arm32_reboot.c Wed Nov 11 14:50:08 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arm32_reboot.c,v 1.9 2015/11/11 12:37:13 jmcneill Exp $ */
+/* $NetBSD: arm32_reboot.c,v 1.10 2015/11/11 14:50:08 jmcneill Exp $ */
/*
* Copyright (c) 2002, 2003, 2005 Genetec Corporation. All rights reserved.
@@ -122,7 +122,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_reboot.c,v 1.9 2015/11/11 12:37:13 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_reboot.c,v 1.10 2015/11/11 14:50:08 jmcneill Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -141,7 +141,7 @@
static int
docpureset(int howto)
{
- if (howto & RB_POWERDOWN) {
+ if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
if (cpu_powerdown_address) {
cpu_powerdown_address();
printf("WARNING: powerdown failed\r\n");
Home |
Main Index |
Thread Index |
Old Index