Skip to content

Commit cf3bdc2

Browse files
Andi KleenH. Peter Anvin
authored andcommitted
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>
1 parent 23b764d commit cf3bdc2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/x86/boot/video-vga.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ static __videocard video_vga;
4141
static u8 vga_set_basic_mode(void)
4242
{
4343
struct biosregs ireg, oreg;
44-
u16 ax;
4544
u8 mode;
4645

4746
initregs(&ireg);
4847

4948
/* Query current mode */
50-
ax = 0x0f00;
49+
ireg.ax = 0x0f00;
5150
intcall(0x10, &ireg, &oreg);
5251
mode = oreg.al;
5352

0 commit comments

Comments
 (0)