Skip to content

Conversation

@wxjstz
Copy link
Contributor

@wxjstz wxjstz commented Nov 25, 2025

Some code needs to be updated due to changes in dependencies.

@wxjstz wxjstz changed the title Bug fixes for some RISC V64 platforms Bug fixes for some RISCV64 platforms Nov 25, 2025
@leiflindholm
Copy link
Member

The reason those platforms weren't included in #890 was that there were other issues with those ports preventing even build tests.

If you can confirm that these changes make all of the affected platforms buildable, then please call that out explicitly.

For any platforms that still won't build, please leave them as is. It provides a useful indication that they are not actively maintained and can be removed.

!else
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
!endif
CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addition goes beyond what is described in the commit message.
Please add a description of why it's needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update commit message

EFI_HOB_HANDOFF_INFO_TABLE *HobList;
EFI_RISCV_FIRMWARE_CONTEXT FirmwareContext;
RISCV_SEC_HANDOFF_DATA SecHandoffData;
const EFI_GUID SecHobDataGuid = RISCV_SEC_HANDOFF_HOB_GUID;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please align the variable name with the surrounding ones.
Also please separate the assignment from the definition.

DeviceTreeAddress
));

FirmwareContext.BootHartId = BootHartId;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are migrating from some sort of design to some other sort of design.
This is not the same as "add this hob which is required".
Can you expand the commit message slightly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update commit message

)
{
EFI_HOB_HANDOFF_INFO_TABLE *HobList;
EFI_RISCV_FIRMWARE_CONTEXT FirmwareContext;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly the same comments as on Bosc/XiangshanSeriesPkg applies to this commit also.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update commit message

Corrected the omission in
tianocore#890

Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>
Corrected the omission in
tianocore#890

Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>
I found redundant includes, when I tried to compile
Platform/Bosc/XiangshanSeriesPkg/NanhuDev/NanhuDev.dsc

Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>
I found FvbServicesRuntimeDxe missing IoLib, when I tried to compile
Platform/Bosc/XiangshanSeriesPkg/NanhuDev/NanhuDev.dsc

Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>
The booting info is now stored in SEC HOB GUID data.

tianocore/edk2#11135
removed the firmware context and replaced it with SEC HOB Data.

Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>
1. Correct the path of CpuExceptionHandlerLib, different phases
   require their own CpuExceptionHandlerLib
2. Dw8250SerialPortLib.inf no longer exists; it has been replaced
   by BaseSerialPortLibRiscVSbiLibRam.
3. Correct the dependency on FdtLib

Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>
The booting info is now stored in SEC HOB GUID data.

tianocore/edk2#11135
removed the firmware context and replaced it with SEC HOB Data.

Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>
1. Correct the path of CpuExceptionHandlerLib, different phases
   require their own CpuExceptionHandlerLib
2. Remove unnecessary RiscVFpuLib

Signed-off-by: Xiang W <wangxiang@iscas.ac.cn>
@wxjstz
Copy link
Contributor Author

wxjstz commented Dec 3, 2025

The reason those platforms weren't included in #890 was that there were other issues with those ports preventing even build tests.

If you can confirm that these changes make all of the affected platforms buildable, then please call that out explicitly.

For any platforms that still won't build, please leave them as is. It provides a useful indication that they are not actively maintained and can be removed.

Sophgo and XiangShang is buildable.
Silicon/Marvell/Applications/DumpFdt/DumpFdt.inf is not in used. PATCH has be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants