lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C38C148.2060805@zytor.com>
Date:	Sat, 10 Jul 2010 11:51:52 -0700
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Pekka Enberg <penberg@...helsinki.fi>
CC:	x86@...nel.org, linux-kernel@...r.kernel.org,
	Ingo Molnar <mingo@...hat.com>,
	Cyrill Gorcunov <gorcunov@...il.com>
Subject: Re: [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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ