Subject: Re: netbsd-current and ibook g4: kernel freeze
To: Michael Lorenz <macallan@netbsd.org>
From: leon zadorin <leonleon77@gmail.com>
List: port-macppc
Date: 02/05/2007 16:38:12
On 2/5/07, leon zadorin <leonleon77@gmail.com> wrote:
> On 2/5/07, leon zadorin <leonleon77@gmail.com> wrote:
> > On 2/5/07, Michael Lorenz <macallan@netbsd.org> wrote:
> >
> > > Should be OF_interpret("line#", 0, 1, &crow); - nothing in, one out.
> > >
> >
> > Ahh, cool - make sense to me now - thanks.
> >
> > In that case, what about the following code in "copy_rom_font" (same
> > file, macppc/dev/ofb_cons.c):
> >
> > /* Get ROM FONT address. */
> > OF_interpret("font-adr", 1, 1, &romfont);
> >
>
> and these (whilst I am in this method :-) in "copy_rom_font" (same
> file, macppc/dev/ofb_cons.c):
>
> /* Get character size */
> OF_interpret("char-width", 1, 1, &char_width);
> OF_interpret("char-height", 1, 1, &char_height);
>
oh and may be these (OF_interpret calls)...
in "ofb_init_rasops" (same file, macppc/dev/ofb_cons.c):
width = height = -1;
if (OF_getprop(node, "width", &width, 4) != 4)
OF_interpret("screen-width", 1, 1, &width);
if (OF_getprop(node, "height", &height, 4) != 4)
OF_interpret("screen-height", 1, 1, &height);
if (OF_getprop(node, "linebytes", &linebytes, 4) != 4)
linebytes = width; /* XXX */
if (OF_getprop(node, "depth", &depth, 4) != 4)
depth = 8; /* XXX */
if (OF_getprop(node, "address", &fbaddr, 4) != 4)
OF_interpret("frame-buffer-adr", 1, 1, &fbaddr);
if (width == -1 || height == -1 || fbaddr == 0 || fbaddr == -1)
return FALSE;
and these (from the same method, but a little lower):
int cols, rows;
/*
* XXX this assumes we're the console which may or may not
* be the case
*/
OF_interpret("#lines", 1, 1, &rows);
OF_interpret("#columns", 1, 1, &cols);