mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
23b764d056
commit
cf3bdc29fc
1 changed files with 1 additions and 2 deletions
|
@ -41,13 +41,12 @@ static __videocard video_vga;
|
||||||
static u8 vga_set_basic_mode(void)
|
static u8 vga_set_basic_mode(void)
|
||||||
{
|
{
|
||||||
struct biosregs ireg, oreg;
|
struct biosregs ireg, oreg;
|
||||||
u16 ax;
|
|
||||||
u8 mode;
|
u8 mode;
|
||||||
|
|
||||||
initregs(&ireg);
|
initregs(&ireg);
|
||||||
|
|
||||||
/* Query current mode */
|
/* Query current mode */
|
||||||
ax = 0x0f00;
|
ireg.ax = 0x0f00;
|
||||||
intcall(0x10, &ireg, &oreg);
|
intcall(0x10, &ireg, &oreg);
|
||||||
mode = oreg.al;
|
mode = oreg.al;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue