From: H. Peter Anvin Date: Wed, 30 Jan 2008 12:33:03 +0000 (+0100) Subject: x86 setup: push video mode setup as late as possible X-Git-Tag: v2.6.25-rc1~1143^2~325 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a8514e04e3f0249a75f66225e99cdf48d305be7;p=platform%2Fkernel%2Flinux-3.10.git x86 setup: push video mode setup as late as possible Push video mode setup as late as possible; messages issued through the BIOS interface after video mode setup will either not be seen (for framebuffer modes) or will screw up the cursor (for text modes.) In particular, this makes the EDD probing message show up correctly. Signed-off-by: H. Peter Anvin Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/boot/main.c b/arch/x86/boot/main.c index 1f95750..22ca62b 100644 --- a/arch/x86/boot/main.c +++ b/arch/x86/boot/main.c @@ -131,9 +131,6 @@ void main(void) /* Set keyboard repeat rate (why?) */ keyboard_set_repeat(); - /* Set the video mode */ - set_video(); - /* Query MCA information */ query_mca(); @@ -154,6 +151,10 @@ void main(void) #if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE) query_edd(); #endif + + /* Set the video mode */ + set_video(); + /* Do the last things and invoke protected mode */ go_to_protected_mode(); }