<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2-platforms.git/Platform/Loongson, branch CodeCleanup</title>
<subtitle>EDK II sample platform branches and tags (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=CodeCleanup</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=CodeCleanup'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/'/>
<updated>2024-06-12T09:19:38+00:00</updated>
<entry>
<title>Platform/Loongson: Remove minimium memory size limitation</title>
<updated>2024-06-12T09:19:38+00:00</updated>
<author>
<name>Bibo Mao</name>
<email>maobibo@loongson.cn</email>
</author>
<published>2024-03-25T02:50:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=adea4ad93c3664d879f951aea97a956c52e42ec1'/>
<id>urn:sha1:adea4ad93c3664d879f951aea97a956c52e42ec1</id>
<content type='text'>
Temparory stack memory on PEI is hardcoded now, also minimium memory
size 256M is hardcoded now. Here memory map table from fw cfg can be
parsed. If there is memory map entry contains pei stack, it can be
published as usable memory at PEI stage.

Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Signed-off-by: Bibo Mao &lt;maobibo@loongson.cn&gt;
Signed-off-by: Xianglai Li &lt;lixianglai@loongson.cn&gt;
Reviewed-by: Chao Li &lt;lichao@loongson.cn&gt;
</content>
</entry>
<entry>
<title>Platform/Loongson: Fix compile error</title>
<updated>2024-05-16T02:07:17+00:00</updated>
<author>
<name>Xianglai Li</name>
<email>lixianglai@loongson.cn</email>
</author>
<published>2024-05-15T09:29:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=ef0b6c0cb556957798c3ca5025aced871525dfae'/>
<id>urn:sha1:ef0b6c0cb556957798c3ca5025aced871525dfae</id>
<content type='text'>
QemuFwCfgLibMmio has been removed,
using the latest FwCfgLib to fix compilation errors

Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Cc: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Signed-off-by: Xianglai Li &lt;lixianglai@loongson.cn&gt;
</content>
</entry>
<entry>
<title>LoongArchQemuPkg: auto-gen &amp; fix SEC ProcessLibraryConstructorList() decl</title>
<updated>2024-03-08T08:44:35+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2024-03-05T12:01:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=a81b9f2815da1bacb91aa5ece1caa730ac5d80bb'/>
<id>urn:sha1:a81b9f2815da1bacb91aa5ece1caa730ac5d80bb</id>
<content type='text'>
&lt;Library/PeimEntryPoint.h&gt; declares a bogus
ProcessLibraryConstructorList() for LoongArchQemuPkg's SEC module. Rely on
AutoGen for (properly) declaring ProcessLibraryConstructorList(). Update
the call.

Build-tested with:

  build -a LOONGARCH64 -b DEBUG \
    -m Platform/Loongson/LoongArchQemuPkg/Sec/SecMain.inf \
    -p Platform/Loongson/LoongArchQemuPkg/Loongson.dsc -t GCC5

Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Cc: Xianglai li &lt;lixianglai@loongson.cn&gt;
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=990
Signed-off-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Message-Id: &lt;20240305120126.70259-4-lersek@redhat.com&gt;
Reviewed-by: Chao Li &lt;lichao@loongson.cn&gt;
</content>
</entry>
<entry>
<title>Platform/Loongson: loongarch supports parsing multi-chip flash</title>
<updated>2024-02-22T01:58:14+00:00</updated>
<author>
<name>Xianglai Li</name>
<email>lixianglai@loongson.cn</email>
</author>
<published>2024-02-04T06:24:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=7f42d4034c8f4266da691df69dce18234f752cb4'/>
<id>urn:sha1:7f42d4034c8f4266da691df69dce18234f752cb4</id>
<content type='text'>
The current implementation of loongarch NorFlashQemuLib is to
parse fdt and think that the first flash address resolved to
the NVRAM space, with the evolution of qemu code, loongarch
uses the first flash to store UEFI code and the second flash
as NVRAM space, so NorFlashQemuLib needs to be able to parse
multiple flash base addresses. By default, the first piece of
flash other than UEFI code is considered as NVRAM space.

Cc: Andrea Bolognani &lt;abologna@redhat.com&gt;
Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Signed-off-by: Xianglai Li &lt;lixianglai@loongson.cn&gt;
Reviewed-by: Chao Li &lt;lichao@loongson.cn&gt;
</content>
</entry>
<entry>
<title>Platform/Loongson/LoongArchQemuPkg: Add ImagePropertiesRecordLib Instance</title>
<updated>2023-12-01T08:07:31+00:00</updated>
<author>
<name>Taylor Beebe</name>
<email>taylor.d.beebe@gmail.com</email>
</author>
<published>2023-12-01T00:34:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=91d9680f50f1922936458bde283030f2e9459f00'/>
<id>urn:sha1:91d9680f50f1922936458bde283030f2e9459f00</id>
<content type='text'>
ImagePropertiesRecordLib is used by DxeMain and PiSmmCore, so it
needs to be added to most platforms.

Signed-off-by: Taylor Beebe &lt;taylor.d.beebe@gmail.com&gt;
Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Xianglai li &lt;lixianglai@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Acked-by: Chao Li &lt;lichao@loongson.cn&gt;
</content>
</entry>
<entry>
<title>LoongArchQemuPkg/LsRealTimeClockLib: remove superfluous instance init steps</title>
<updated>2023-10-24T13:19:06+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2023-10-20T12:18:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=88b0e7f0e92e4e680a7abe4b22b68ab9bc260b68'/>
<id>urn:sha1:88b0e7f0e92e4e680a7abe4b22b68ab9bc260b68</id>
<content type='text'>
RealTimeClockLib instances are consumed by edk2's
EmbeddedPkg/RealTimeClockRuntimeDxe driver. In its entry point function
InitializeRealTimeClock(), the driver:

(1) calls LibRtcInitialize(),

(2) sets the GetTime(), SetTime(), GetWakeupTime() and SetWakeupTime()
    runtime services to its own similarly-named functions -- where those
    functions wrap the corresponding RealTimeClockLib APIs,

(3) installs EFI_REAL_TIME_CLOCK_ARCH_PROTOCOL with a NULL protocol
    interface.

Steps (2) and (3) conform to PI v1.8 sections II-9.7.2.4 through
II-9.7.2.7.

However, this means that LibRtcInitialize() (of any RealTimeClockLib
instance) should not itself (a) set the GetTime(), SetTime(),
GetWakeupTime() and SetWakeupTime() runtime services, nor (b) install
EFI_REAL_TIME_CLOCK_ARCH_PROTOCOL. The runtime service pointers will be
overwritten in step (2) anyway, and step (3) will uselessly install a
second (NULL-interface) EFI_REAL_TIME_CLOCK_ARCH_PROTOCOL instance in the
protocol database. (The protocol only serves to notify the DXE Foundation
about said runtime services being available.)

Clean up LoongArchQemuPkg/LsRealTimeClockLib accordingly.

(Note that the lib instance INF file already does not list
UefiRuntimeServicesTableLib.)

Build-tested only (with "Loongson.dsc").

Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Cc: Xianglai li &lt;lixianglai@loongson.cn&gt;
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4565
Signed-off-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Message-Id: &lt;20231020121903.44986-3-lersek@redhat.com&gt;
Acked-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
Reviewed-by: Chao Li &lt;lichao@loongson.cn&gt;
</content>
</entry>
<entry>
<title>LoongArchQemuPkg/LsRealTimeClockLib: hide LibRtcVirtualNotifyEvent</title>
<updated>2023-10-13T10:11:49+00:00</updated>
<author>
<name>Laszlo Ersek</name>
<email>lersek@redhat.com</email>
</author>
<published>2023-10-12T09:09:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=c1f6330b31e32ff4e313b430940d38393a345eb8'/>
<id>urn:sha1:c1f6330b31e32ff4e313b430940d38393a345eb8</id>
<content type='text'>
The RealTimeClockLib class header in edk2 mistakenly declares a function
called LibRtcVirtualNotifyEvent(). No component ever calls this function
crossing module boundaries; all RealTimeClockLib instances in edk2 and
edk2-platforms are supposed to register (and do register) their
SetVirtualAddressMap() notification functions.

Rename LibRtcVirtualNotifyEvent() to VirtualNotifyEvent(), and make it
static, in preparation for removing the LibRtcVirtualNotifyEvent()
declaration from the lib class header later.

Build-tested only (with "Loongson.dsc").

Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Cc: Xianglai li &lt;lixianglai@loongson.cn&gt;
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=4564
Signed-off-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Acked-by: Chao Li &lt;lichao@loongson.cn&gt;
Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
</content>
</entry>
<entry>
<title>Platform/Loongson: Add AcpiPlatformLib to fix compile error</title>
<updated>2023-09-05T01:36:50+00:00</updated>
<author>
<name>xianglai li</name>
<email>lixianglai@loongson.cn</email>
</author>
<published>2023-08-10T06:52:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=5374f6cd4af379a586c021a3c9bb06146e285e5c'/>
<id>urn:sha1:5374f6cd4af379a586c021a3c9bb06146e285e5c</id>
<content type='text'>
Adding a reference to AcpiPlatformLib to the dsc file
as loongarch is used to fix compilation errors.

Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: xianglai li &lt;lixianglai@loongson.cn&gt;
Reviewed-by: Chao Li &lt;lichao@loongson.cn&gt;
</content>
</entry>
<entry>
<title>Platform/Loongson: Revise the Readme</title>
<updated>2023-06-07T02:00:13+00:00</updated>
<author>
<name>xianglai li</name>
<email>lixianglai@loongson.cn</email>
</author>
<published>2023-06-01T02:38:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=4c3e742e931538a1ee6cb3b571b1281e7fba2564'/>
<id>urn:sha1:4c3e742e931538a1ee6cb3b571b1281e7fba2564</id>
<content type='text'>
Fix some errors in the Readme file.

Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: xianglai li &lt;lixianglai@loongson.cn&gt;
Reviewed-by: Chao Li &lt;lichao@loongson.cn&gt;
</content>
</entry>
<entry>
<title>Platform/Loongson: Pre-allocate 0-4K memory during the Pei phase</title>
<updated>2023-06-07T01:59:51+00:00</updated>
<author>
<name>xianglai li</name>
<email>lixianglai@loongson.cn</email>
</author>
<published>2023-06-01T02:28:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=b59f3ef9dd2cb0a8d52013415821a7669e27a390'/>
<id>urn:sha1:b59f3ef9dd2cb0a8d52013415821a7669e27a390</id>
<content type='text'>
When 0 address protection is enabled,
0-4k memory needs to be preallocated to
prevent UEFI applications from allocating use,
such as grub.

Cc: Ard Biesheuvel &lt;ardb+tianocore@kernel.org&gt;
Cc: Bibo Mao &lt;maobibo@loongson.cn&gt;
Cc: Chao Li &lt;lichao@loongson.cn&gt;
Cc: Leif Lindholm &lt;quic_llindhol@quicinc.com&gt;
Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: xianglai li &lt;lixianglai@loongson.cn&gt;
Reviewed-by: Chao Li &lt;lichao@loongson.cn&gt;
</content>
</entry>
</feed>
