Re: Panic at boot on 4/330 with cgfour and cgsix

Julian Coleman <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc
Message-ID <[email protected]>
Hi,

> probably best to fix this by either explicitly casting 
> PFOUR_COLOR_OFF_CMAP as ((paddr_t)0xfff00000) or simply making
> it unsigned as 0xfff00000u.

Because we need the 64-bit type, how about:

/* Offset of -0x00100000 with 64-bit bus addresses */
#define	PFOUR_COLOR_OFF_CMAP ((paddr_t) 0xfffffffffff00000)

(I think I have the correct number of f and 0)?

Alternatively we could define a new:

#define PFOUR_COLOR_OFF_CMAP64

and use that in sys/arch/sparc/dev/cgfour.c, so that sys/dev/sun/pfourreg.h
works for both sun3 and sparc (I have a slight preference for this).

Regards,

Julian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.