Hi Gerd,


Thanks,
Chao
On 2024/3/15 17:36, Gerd Hoffmann wrote:
On Mon, Mar 11, 2024 at 05:39:08PM +0800, Chao Li wrote:
Add a early serial port output library into LoongArchVirt that named
EarlyFdtSerialPortLib16550, this library is referenced from
MdeModulePkg.
Why create your own copy?  What are the differences to 
MdeModulePkg/Library/BaseSerialPortLib16550?
This library is used in the PEI stage, same as the Hook Library, LoongArch QEMU is runs on flash in PEI stage, MdeModule version does not support to get the SerialRegisterBase via registers or HOB or FDT, I thought if we adjust the MdeModule version is a big project, so I copied the MdeModule version, and added a way to get SerialRegisterBase via FDT.

take care,
  Gerd





_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116804) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_