From: Andi Kleen Date: Thu, 10 Jun 2010 11:10:40 +0000 (+0200) Subject: x86, setup: Set ax register in boot vga query X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~25508^2~5 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=cf3bdc29fcbf2cb4cfa238591021d41ea8f8431f;p=mirror_ubuntu-focal-kernel.git x86, setup: Set ax register in boot vga query Catch missing conversion to the register structure "glove box" scheme. Found by gcc 4.6's new warnings. Signed-off-by: Andi Kleen LKML-Reference: <20100610111040.F1781B1A2B@basil.firstfloor.org> Signed-off-by: H. Peter Anvin --- diff --git a/arch/x86/boot/video-vga.c b/arch/x86/boot/video-vga.c index ed7aeff786b2..45bc9402aa49 100644 --- a/arch/x86/boot/video-vga.c +++ b/arch/x86/boot/video-vga.c @@ -41,13 +41,12 @@ static __videocard video_vga; static u8 vga_set_basic_mode(void) { struct biosregs ireg, oreg; - u16 ax; u8 mode; initregs(&ireg); /* Query current mode */ - ax = 0x0f00; + ireg.ax = 0x0f00; intcall(0x10, &ireg, &oreg); mode = oreg.al;