From: H. Peter Anvin Date: Fri, 10 Aug 2007 21:20:26 +0000 (-0700) Subject: [x86 setup] The current display page is returned in %bh, not %bl X-Git-Tag: v2.6.23-rc4~132^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=362cea339a34e04caae6cad67ea9bde5c100d12b;p=linux-2.6 [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: H. Peter Anvin --- diff --git a/arch/i386/boot/video.c b/arch/i386/boot/video.c index 958130ef00..693f20d310 100644 --- a/arch/i386/boot/video.c +++ b/arch/i386/boot/video.c @@ -61,7 +61,7 @@ static void store_video_mode(void) /* 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_page = page; + boot_params.screen_info.orig_video_page = page >> 8; } /*