lkml.org 
[lkml]   [2010]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC/PATCH] x86: Early-boot serial I/O support
On 07/10/2010 11:07 AM, Pekka Enberg wrote:
> This patch adds serial I/O support to very early boot printf(). It's useful for
> debugging boot code when running Linux under KVM, for example. The actual code
> was lifted from early printk.

Yinghai is correct that this really needs to pick apart the command
line, especially since there is already support for command-line parsing
in the early boot code. I suggest we just reuse the earlyprintk=
option, especially since it's basically the same code and so should have
the same failure profile.

> +
> + while ((inb(early_serial_base + LSR)& XMTRDY) == 0&& --timeout)
> + ;
> +

cpu_relax(); here, probably.

-hpa


\
 
 \ /
  Last update: 2010-07-10 20:55    [W:0.035 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site