-
Notifications
You must be signed in to change notification settings - Fork 582
Bug fixes for some RISCV64 platforms #910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
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. |
Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
Outdated
Show resolved
Hide resolved
| !else | ||
| DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf | ||
| !endif | ||
| CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update commit message
Silicon/Bosc/NanHuPkg/Sec/SecMain.c
Outdated
| 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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
Sophgo and XiangShang is buildable. |
Some code needs to be updated due to changes in dependencies.