[SeaBIOS] [RFC PATCH 1/2] serial console, output
Gerd Hoffmann
kraxel at redhat.com
Mon Jul 4 22:23:56 CEST 2016
Hi,
> > void sercon_putchar(char *ptr)
> > {
> > char c = GET_GLOBAL(ptr[0]);
> > [ ... ]
> >
> > ... work?
>
> Yes. See output.c:puts_cs() as an example. It only works if it's a
> constant string (as opposed to a string built on the stack).
After cleaning up the code only three fixed sequences are left: reset,
clear screen and move cursor right. Don't think it is worth creating a
putstring function just for these.
cheers,
Gerd
More information about the SeaBIOS
mailing list