Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ak@linux.intel.com>
LKML-Reference: <20100610111040.F1781B1A2B@basil.firstfloor.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

authored by

Andi Kleen and committed by
H. Peter Anvin
cf3bdc29 23b764d0

+1 -2
+1 -2
arch/x86/boot/video-vga.c
··· 41 41 static u8 vga_set_basic_mode(void) 42 42 { 43 43 struct biosregs ireg, oreg; 44 - u16 ax; 45 44 u8 mode; 46 45 47 46 initregs(&ireg); 48 47 49 48 /* Query current mode */ 50 - ax = 0x0f00; 49 + ireg.ax = 0x0f00; 51 50 intcall(0x10, &ireg, &oreg); 52 51 mode = oreg.al; 53 52