Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf3bdc29 authored by Andi Kleen's avatar Andi Kleen Committed by H. Peter Anvin
Browse files

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: default avatarAndi Kleen <ak@linux.intel.com>
LKML-Reference: <20100610111040.F1781B1A2B@basil.firstfloor.org>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 23b764d0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;