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

Julian Coleman <[email protected]> Thu, 19 Jun 2025 14:44:43 +0200
Newsgroups gmane.os.netbsd.ports.sparc
Message-ID <aFQGOx9eZROS7J65@morava>
Hi,

> > -#define PFOUR_COLOR_OFF_CMAP	0xfff00000	/* (-0x00100000) */
> > +#define PFOUR_COLOR_OFF_CMAP	(-0x00100000)
> 
> can you add a comment explaining why this is the best solution for
> this weird problem?

How about something like:

  /* Use a negative number to handle both 32- and 64-bit values */

?

Regards,

Julian

--