Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/ofppc/ofppc Fix cpu check to actually work.



details:   https://anonhg.NetBSD.org/src/rev/01305dc51d7a
branches:  trunk
changeset: 516285:01305dc51d7a
user:      billc <billc%NetBSD.org@localhost>
date:      Sat Oct 20 08:22:58 2001 +0000

description:
Fix cpu check to actually work.

diffstat:

 sys/arch/ofppc/ofppc/cpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r de97b34a571e -r 01305dc51d7a sys/arch/ofppc/ofppc/cpu.c
--- a/sys/arch/ofppc/ofppc/cpu.c        Sat Oct 20 08:22:29 2001 +0000
+++ b/sys/arch/ofppc/ofppc/cpu.c        Sat Oct 20 08:22:58 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.1 2001/08/26 02:47:40 matt Exp $     */
+/*     $NetBSD: cpu.c,v 1.2 2001/10/20 08:22:58 billc Exp $    */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -59,8 +59,8 @@
        if (OF_getprop(oba->oba_phandle, "device_type", name, sizeof name) <= 3)
                return (0);
        if (!strcmp(name, "cpu"))
-               return (0);
-       return (1);
+               return (1);
+       return (0);
 }
 
 void



Home | Main Index | Thread Index | Old Index