NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-macppc/57394: CPU unable to attach mainbus on NetBSD 10.0_BETA(Current?) on Power Macintosh 9600(G2)
The following reply was made to PR port-macppc/57394; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: port-macppc/57394: CPU unable to attach mainbus on NetBSD
10.0_BETA(Current?) on Power Macintosh 9600(G2)
Date: Sun, 7 May 2023 09:51:44 +0200
On Sat, May 06, 2023 at 10:05:00PM +0000, nullnilaki%gmail.com@localhost wrote:
> OF_finddevice("/cpus") function return -1 on G2 Mac...
-1 is the expected error message everwhere, and != 0 is just a bogus
test. Furthermore the sign of the handle should not matter, so > 0 is
clearly wrong.
The test should be != -1, see
https://nxr.netbsd.org/xref/src/sys/arch/powerpc/powerpc/openfirm.c#345
Martin
Home |
Main Index |
Thread Index |
Old Index