Module Name:    src
Committed By:   jmcneill
Date:           Wed Nov 11 14:50:08 UTC 2015

Modified Files:
        src/sys/arch/arm/arm32: arm32_reboot.c

Log Message:
fix RB_POWERDOWN test


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/arm32/arm32_reboot.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/arm/arm32/arm32_reboot.c
diff -u src/sys/arch/arm/arm32/arm32_reboot.c:1.9 src/sys/arch/arm/arm32/arm32_reboot.c:1.10
--- src/sys/arch/arm/arm32/arm32_reboot.c:1.9	Wed Nov 11 12:37:13 2015
+++ src/sys/arch/arm/arm32/arm32_reboot.c	Wed Nov 11 14:50:08 2015
@@ -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 @@ void (*cpu_powerdown_address)(void);
 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");

Reply via email to