-
Notifications
You must be signed in to change notification settings - Fork 602
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?
Changes from all commits
e3f7070
f1a0b79
326bbd4
b31a640
42c7887
7603557
b9326f9
ffec5ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,9 +144,8 @@ | |
|
|
||
| # RISC-V Architectural Libraries | ||
| RiscVSbiLib|MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf | ||
| RiscVFpuLib|UefiCpuPkg/Library/BaseRiscVFpuLib/BaseRiscVFpuLib.inf | ||
| RiscVMmuLib|UefiCpuPkg/Library/BaseRiscVMmuLib/BaseRiscVMmuLib.inf | ||
| CpuExceptionHandlerLib|UefiCpuPkg/Library/BaseRiscV64CpuExceptionHandlerLib/BaseRiscV64CpuExceptionHandlerLib.inf | ||
| CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf | ||
|
|
||
| TimerLib|UefiCpuPkg/Library/BaseRiscV64CpuTimerLib/BaseRiscV64CpuTimerLib.inf | ||
| TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf | ||
|
|
@@ -161,6 +160,7 @@ | |
| !else | ||
| DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf | ||
| !endif | ||
| CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This addition goes beyond what is described in the commit message.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update commit message |
||
|
|
||
| ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf | ||
| ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,8 @@ SecStartup ( | |
| ) | ||
| { | ||
| 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; | ||
| EFI_STATUS Status; | ||
| UINT64 UefiMemoryBase; | ||
| UINT64 StackBase; | ||
|
|
@@ -76,9 +77,6 @@ SecStartup ( | |
| DeviceTreeAddress | ||
| )); | ||
|
|
||
| FirmwareContext.BootHartId = BootHartId; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update commit message |
||
| SetFirmwareContextPointer (&FirmwareContext); | ||
|
|
||
| StackBase = (UINT64)FixedPcdGet32 (PcdTemporaryRamBase); | ||
| StackSize = FixedPcdGet32 (PcdTemporaryRamSize); | ||
| UefiMemoryBase = StackBase + StackSize - SIZE_32MB; | ||
|
|
@@ -96,6 +94,10 @@ SecStartup ( | |
|
|
||
| BuildStackHob (StackBase, StackSize); | ||
|
|
||
| SecHandoffData.BootHartId = BootHartId; | ||
| SecHandoffData.FdtPointer = DeviceTreeAddress; | ||
| BuildGuidDataHob (&SecHobDataGuid, &SecHandoffData, sizeof(SecHandoffData)); | ||
|
|
||
| // | ||
| // Process all libraries constructor function linked to SecMain. | ||
| // | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,8 @@ SecStartup ( | |
| ) | ||
| { | ||
| EFI_HOB_HANDOFF_INFO_TABLE *HobList; | ||
| EFI_RISCV_FIRMWARE_CONTEXT FirmwareContext; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update commit message |
||
| RISCV_SEC_HANDOFF_DATA SecHandoffData; | ||
| const EFI_GUID SecHobDataGuid = RISCV_SEC_HANDOFF_HOB_GUID; | ||
| EFI_STATUS Status; | ||
| UINT64 UefiMemoryBase; | ||
| UINT64 StackBase; | ||
|
|
@@ -76,9 +77,6 @@ SecStartup ( | |
| DeviceTreeAddress | ||
| )); | ||
|
|
||
| FirmwareContext.BootHartId = BootHartId; | ||
| SetFirmwareContextPointer (&FirmwareContext); | ||
|
|
||
| StackBase = (UINT64)FixedPcdGet32 (PcdTemporaryRamBase); | ||
| StackSize = FixedPcdGet32 (PcdTemporaryRamSize); | ||
| UefiMemoryBase = StackBase + StackSize - SIZE_32MB; | ||
|
|
@@ -96,6 +94,9 @@ SecStartup ( | |
|
|
||
| BuildStackHob (StackBase, StackSize); | ||
|
|
||
| SecHandoffData.BootHartId = BootHartId; | ||
| SecHandoffData.FdtPointer = DeviceTreeAddress; | ||
| BuildGuidDataHob (&SecHobDataGuid, &SecHandoffData, sizeof(SecHandoffData)); | ||
| // | ||
| // Process all libraries constructor function linked to SecMain. | ||
| // | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
That's probably the other platform's fault. It's typical for platforms to do this, it's how they bind
#includedirectives to a path. Does the other board perhaps!includethis file in its DEC/DSC? That would likely create issues, yes