Commit 362cea33 authored by H. Peter Anvin's avatar H. Peter Anvin

[x86 setup] The current display page is returned in %bh, not %bl

The current display page is an 8-bit number, even though struct
screen_info gives it a 16-bit number.  The number is returned in %bh,
so it needs to be >> 8 before storing.

Special thanks to Jeff Chua for detailed bug reporting.
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 28e8351a
...@@ -61,7 +61,7 @@ static void store_video_mode(void) ...@@ -61,7 +61,7 @@ static void store_video_mode(void)
/* Not all BIOSes are clean with respect to the top bit */ /* Not all BIOSes are clean with respect to the top bit */
boot_params.screen_info.orig_video_mode = ax & 0x7f; boot_params.screen_info.orig_video_mode = ax & 0x7f;
boot_params.screen_info.orig_video_page = page; boot_params.screen_info.orig_video_page = page >> 8;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment