On 05/18/15 08:50, lidonglin wrote:
> First thanks. And I ask another question. Which function can I call to
> print information to serial port or IO port(default 0x402)  when I build
> RELEASE OVMF ?

- The only function that currently enables someone to print to ioport
0x402 (PcdDebugIoPort), and continue, is DebugPrint() in
"OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c". This function is
normally called via the DEBUG() macro (which has no effect if you build
OVMF for RELEASE).

- You can write to the serial port with SerialPortWrite(), from
"MdePkg/Include/Library/SerialPortLib.h".

(But, honestly, there is no reason to build OVMF for anything but DEBUG,
ever.)

Thanks
Laszlo

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to