[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] VGA extended text modes

"Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx> writes:

> However, how does dom0 set the extended text mode? I presume it doesn't
> use a BIOS call.

Linux uses vesa bios calls in the 16bit startup code, at least for the
stuff settable via vga="...".  Mode info is passed to 32bit code in
struct screen_info (see Documentation/i386/zero-page.txt).  Thats why
the vga argument needs special treatment by the boot loaders, they
can't just pass it on on the kernel command line like most other args.
They have to set a byte in the kernel's boot sector for that.  See
also "man rdev".  That is really old stuff from the days you have
booted your new linux kernel using "cat zImage > /dev/fd0 && reboot".

For just more text lines you can simply load a smaller font than the
default one somewhere in the dom0 boot scripts to have the same
effect.  That doesn't work for 132col txt modes or graphic modes (=>
vesafb) though.


#define printk(args...) fprintf(stderr, ## args)

SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.