Re: Visualize J6700

Nick Hudson <[email protected]> Mon, 18 Feb 2013 19:29:52 +0000
Newsgroups gmane.os.netbsd.ports.hp700
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------090007020706030801080502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 02/16/13 15:00, Nick Hudson wrote:
>
> On 16 Feb 2013, at 13:35, KIYOHARA Takashi <[email protected]> wrote:
>
>> Hi! Nick,
>>
>>
> Hi
>
>
>> From: Nick Hudson <[email protected]>
>> Date: Sat, 16 Feb 2013 13:19:30 +0000
>>
>>> On 16 Feb 2013, at 11:53, KIYOHARA Takashi <[email protected]> wrote:
>>>
>>>> Hi! all,
>>>>
>>>>
>>>> I challenged installation to my Visualize J6700 (cpu x2) the other day.
>>>>
>>>> http://www.openpa.net/systems/hp-visualize_j6000_j6700.html
>>>>
>>>> However, Visualize J6700 panics with this log.
>>>>
>>>> http://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/tmp/PIC_309.JPG
>>>> http://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/tmp/PIC_310.JPG
>> Sorry,  PIC_0309.JPG and PIC_0310.JPG is correct.
[...]
> Yeah, give that a go. I'll look at why a non-MP kernel crashes later.
>
Try this patch for the (non-MULTIPROCESSOR) GENERIC crash

Nick

--------------090007020706030801080502
Content-Type: text/plain; charset=us-ascii;
 name="hp700.cpu.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="hp700.cpu.c.diff"

Index: sys/arch/hp700/dev/cpu.c
===================================================================
RCS file: /cvsroot/src/sys/arch/hp700/dev/cpu.c,v
retrieving revision 1.29
diff -u -p -u -r1.29 cpu.c
--- sys/arch/hp700/dev/cpu.c	10 Oct 2012 15:46:34 -0000	1.29
+++ sys/arch/hp700/dev/cpu.c	18 Feb 2013 19:25:49 -0000
@@ -74,7 +74,7 @@ cpumatch(device_t parent, cfdata_t cf, v
 	    ca->ca_type.iodc_sv_model != HPPA_NPROC_HPPA)
 		return 0;
 
-	if (cf->cf_unit >= MAXCPUS)
+	if (cf->cf_unit >= HPPA_MAXCPUS)
 		return 0;
 
 	return 1;

--------------090007020706030801080502--