Messages in this thread | | | Date | Mon, 11 Oct 2010 12:56:15 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH] x86, setup: Check early serial console per string instead of one char |
| |
On 10/11/2010 12:47 PM, Yinghai Lu wrote: >> >> This seems to add a bunch of code for zero benefit. Testing a global >> variable is zero cost compared to either a BIOS call or poking a serial >> port. > > some server have bios serial console redirection support, and bios int call could send char to screen and serial port. > > in that case, take out serial_putchar from putchar could produce more readable print out from serial console >
That doesn't appear to have anything to do with this code change. What you're saying is that "if BIOS does serial console redirection, we shouldn't output to both the serial console and the BIOS console", which is of course a truism, but that doesn't justify in any way this particular code reconfiguration.
-hpa
| |