<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">And you seem to assume that CBFS is memory mapped which might not always be the case.<br>
</blockquote><div><br></div><div>This is a very important part to keep in mind when we are talking UART. There has been an attempt inside the Chrome OS team before to make the UART runtime-configurable, and it fell flat on its face because of this. On a non-x86 system, the purpose of the whole bootblock is essentially just to get the SPI flash up and running far enough that you can read it. So if you need to read SPI flash before you can initialize the UART, the whole bootblock and all the places where stuff might go wrong that you'd need a UART to debug is essentially already over. If you want to allow any runtime configuration for the UART, you'll probably have to contend that it only works in verstage/romstage or later.</div><div><br></div><div>Also, please keep in mind that some users care more than others about the boot speed impact from reading runtime configuration, so always leave the option open to keep it all hardcoded and fast.</div></div></div>