Skip to content

Commit

Permalink
x86, setup: Set ax register in boot vga query
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and H. Peter Anvin committed Jun 10, 2010
1 parent 23b764d commit cf3bdc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/boot/video-vga.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit cf3bdc2

Please sign in to comment.