Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155047
b: refs/heads/master
c: febe04d
h: refs/heads/master
i:
  155045: 9eff453
  155043: 0f05e2b
  155039: 1d47715
v: v3
  • Loading branch information
Akinobu Mita authored and H. Peter Anvin committed Jul 4, 2009
1 parent 0ed2638 commit 97161a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22a26e6663008e1fc4d1467aaff7e775124bce31
refs/heads/master: febe04de3be4bf66f9339d8847db2806d99fd164
3 changes: 1 addition & 2 deletions trunk/arch/x86/boot/video-bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@ static int set_bios_mode(u8 mode)
ireg.al = mode; /* AH=0x00 Set Video Mode */
intcall(0x10, &ireg, NULL);


ireg.ah = 0x0f; /* Get Current Video Mode */
intcall(0x10, &ireg, &oreg);

do_restore = 1; /* Assume video contents were lost */

/* Not all BIOSes are clean with the top bit */
new_mode = ireg.al & 0x7f;
new_mode = oreg.al & 0x7f;

if (new_mode == mode)
return 0; /* Mode change OK */
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/boot/video-vesa.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static int vesa_probe(void)
ireg.di = (size_t)&vginfo;
intcall(0x10, &ireg, &oreg);

if (ireg.ax != 0x004f ||
if (oreg.ax != 0x004f ||
vginfo.signature != VESA_MAGIC ||
vginfo.version < 0x0102)
return 0; /* Not present */
Expand All @@ -70,7 +70,7 @@ static int vesa_probe(void)
ireg.di = (size_t)&vminfo;
intcall(0x10, &ireg, &oreg);

if (ireg.ax != 0x004f)
if (oreg.ax != 0x004f)
continue;

if ((vminfo.mode_attr & 0x15) == 0x05) {
Expand Down

0 comments on commit 97161a4

Please sign in to comment.