Skip to content

Commit

Permalink
x86 setup: push video mode setup as late as possible
Browse files Browse the repository at this point in the history
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 <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
H. Peter Anvin authored and Ingo Molnar committed Jan 30, 2008
1 parent b710763 commit 1a8514e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/x86/boot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();
}

0 comments on commit 1a8514e

Please sign in to comment.