[syslinux] [PATCH 16/19] ldlinux: Disable VGA graphics when loading a kernel

H. Peter Anvin hpa at zytor.com
Mon Mar 26 15:33:56 PDT 2012


On 03/23/2012 11:02 AM, Matt Fleming wrote:
> From: Matt Fleming <matt.fleming at intel.com>
> 
> The state of the graphics hardware is unknown when we're about to load
> a new kernel. It could be running in VGA mode, so let's disable VGA
> graphics before passing control to the kernel.
> 
> The old assembly version of this code made extensive used of
> writestr(), which always calls vgaclearmode(). In the C version we're
> using printf() and so need to call vgaclearmode() directly. Doing it
> directly has the added advantage of documenting exactly where we need
> to reset the graphics hardware.
> 
> Signed-off-by: Matt Fleming <matt.fleming at intel.com>

One thing: when loading with "quiet vga=current" we shouldn't reset the
mode (and quiet should inhibit output.)  This is important to users who
want a clean handover.

	-hpa




More information about the Syslinux mailing list