mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [-mm patch] x86: start early_printk at sensible screen row
@ 2006-02-25 11:03 Chuck Ebbert
  0 siblings, 0 replies; 3+ messages in thread
From: Chuck Ebbert @ 2006-02-25 11:03 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, stsp, ak

In-Reply-To: <20060225001533.3b06bbe0.akpm@osdl.org>

On Sat, 25 Feb 2006 at 00:15:33 -0800, Andrew Morton wrote:

> >
> > Use boot info to start early_printk() at the proper row on VGA console.
> > 
> 
> Define "proper".
> 
> > 
> > -           current_ypos = max_ypos;
> > +           current_ypos = SCREEN_INFO.orig_y;
> 
> Is that the place at which the boot loader left the cursor?

Yes, that's what I should have said instead of "proper".

So far I can't break it; after booting with "vga=ask" and doing some
things at the prompt, the kernel output still starts at the right place.

But the emergency fallback early_printk still starts at a fixed place
and the x86_64 'direct mapping' message will screw things up when there's
no earlyprintk boot parameter.

-- 
Chuck
"Equations are the Devil's sentences."  --Stephen Colbert


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [-mm patch] x86: start early_printk at sensible screen row
@ 2006-02-25  7:41 Chuck Ebbert
  2006-02-25  8:15 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Chuck Ebbert @ 2006-02-25  7:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Andi Kleen, Stas Sergeev, linux-kernel

Use boot info to start early_printk() at the proper row on VGA console.

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>

--- 2.6.16-rc4-mm2-64.orig/arch/x86_64/kernel/early_printk.c
+++ 2.6.16-rc4-mm2-64/arch/x86_64/kernel/early_printk.c
@@ -244,7 +244,7 @@ int __init setup_early_printk(char *opt)
 	           && SCREEN_INFO.orig_video_isVGA == 1) {
 		max_xpos = SCREEN_INFO.orig_video_cols;
 		max_ypos = SCREEN_INFO.orig_video_lines;
-		current_ypos = max_ypos;
+		current_ypos = SCREEN_INFO.orig_y;
 		early_console = &early_vga_console; 
  	} else if (!strncmp(buf, "simnow", 6)) {
  		simnow_init(buf + 6);
-- 
Chuck
"Equations are the Devil's sentences."  --Stephen Colbert

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-25 11:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-25 11:03 [-mm patch] x86: start early_printk at sensible screen row Chuck Ebbert
  -- strict thread matches above, loose matches on Subject: below --
2006-02-25  7:41 Chuck Ebbert
2006-02-25  8:15 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®