<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 20.06.2009 2:57 Uhr, Carl-Daniel Hailfinger wrote:
<blockquote cite="mid:4A3C33ED.6030206@gmx.net" type="cite">
  <pre wrap="">On 20.06.2009 02:39, ron minnich wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Fri, Jun 19, 2009 at 4:46 PM, Carl-Daniel Hailfinger wrote
    </pre>
    <blockquote type="cite">
      <pre wrap="">do_printk is defined in src/arch/i386/lib/printk_init.c as almost
identical function, but without console_tx_flush and without locking. If
only one CPU uses the lockless variant, we lose.
    
      </pre>
    </blockquote>
    <pre wrap="">it's very useful. It can be used in the rom/CAR code before consoles
really work.
  
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Hm. AFAICS both versions have the same console requirements and just
differ in locking (if you ignore the _flush no-op).


  </pre>
  <blockquote type="cite">
    <pre wrap="">This kind of thing is common. Just about all OSes have a "printk
before printk" function.
  
    </pre>
  </blockquote>
  <pre wrap=""><!---->
True, but our console requirements for both versions are pretty minimal
and I think we showed in v3 that a one-size-fits-all printk can work fine.
  </pre>
</blockquote>
<br>
It didn't, that's the point.. No locking, and it destroyed output of
i.e. a GDB interface by appending (CB) to each line. Plus, the ifdef
mess is really not (much?) nicer to look at than the linker sets.<br>
<br>
One thing I think v3 does right is to not come with a VGA console. I
still think that every line of coreboot output is always a debugging
message. If your machine is so b0rked you can't get to the payload (but
survive far enough to enable vga, which wis realistic in 0% of the
cases, except you're a developer working on the table creation code)
you shouldn't be bothered with text messages on vga but instead connect
a serial console.<br>
<br>
<br>
Stefan<br>
<br>
<pre class="moz-signature" cols="72">-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: <a class="moz-txt-link-abbreviated" href="mailto:info@coresystems.de">info@coresystems.de</a>  • <a class="moz-txt-link-freetext" href="http://www.coresystems.de/">http://www.coresystems.de/</a>
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
</pre>
</body>
</html>