[coreboot] libpayload: Fix the putc function
Jordan Crouse
jordan.crouse at amd.com
Wed May 14 22:09:07 CEST 2008
On 14/05/08 10:08 -0600, Myles Watson wrote:
>
> > Reverse rows and columns on the video putc() function, and watch printf
> > work again.
> >
> > Signed-off-by: Jordan Crouse <jordan.crouse at amd.com>
>
> Acked-by: Myles Watson <mylesgw at gmail.com>
r3316 (which also accidently included a fix to sample/hello.c, but it
was a useful fix so I'm not sad it is there).
> Thanks,
> Myles
>
> > Index: libpayload/drivers/video/video.c
> > ===================================================================
> > --- libpayload.orig/drivers/video/video.c 2008-05-12
> 14:40:19.000000000 -
> > 0600
> > +++ libpayload/drivers/video/video.c 2008-05-12 14:40:23.000000000 -
> > 0600
> > @@ -126,14 +126,14 @@
> > case '\t':
> > while(cursorx % 8 && cursorx < VIDEO_COLS) {
> > if (console)
> > - console->putc(cursorx, cursory, (ch &
> 0xFF00) | '
> > ');
> > + console->putc(cursory, cursorx, (ch &
> 0xFF00) | '
> > ');
> >
> > cursorx++;
> > }
> > break;
> > default:
> > if (console)
> > - console->putc(cursorx++, cursory, ch);
> > + console->putc(cursory, cursorx++, ch);
> > break;
> > }
> >
> >
> > --
> > Jordan Crouse
> > Systems Software Development Engineer
> > Advanced Micro Devices, Inc.
> >
> >
> > --
> > coreboot mailing list
> > coreboot at coreboot.org
> > http://www.coreboot.org/mailman/listinfo/coreboot
>
>
--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.
More information about the coreboot
mailing list