* [PATCH 0/1] Get privileged mode from PCD
@ 2023-03-09 3:25 Haijun Qin
2023-03-09 3:25 ` [PATCH 1/1] Platform/RISC-V/PlatformPkg: " qinhaijun
0 siblings, 1 reply; 2+ messages in thread
From: Haijun Qin @ 2023-03-09 3:25 UTC (permalink / raw)
To: devel; +Cc: zhuwenjun, zhengyu, jinyanjiang, qinhaijun, zhangdongdong
From: qinhaijun <qinhaijun@eswincomputing.com>
The privileged mode of next booting stage is forced to S-mode,there
change it getting from PcdPeiCorePrivilegeMode PCD.
qinhaijun (1):
Platform/RISC-V/PlatformPkg: Get privileged mode from PCD
Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
base-commit: 4d99e0382809d2adfa289285b3efb57fdffa4598
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] Platform/RISC-V/PlatformPkg: Get privileged mode from PCD
2023-03-09 3:25 [PATCH 0/1] Get privileged mode from PCD Haijun Qin
@ 2023-03-09 3:25 ` qinhaijun
0 siblings, 0 replies; 2+ messages in thread
From: qinhaijun @ 2023-03-09 3:25 UTC (permalink / raw)
To: devel; +Cc: zhuwenjun, zhengyu, jinyanjiang, qinhaijun, zhangdongdong
From: qinhaijun <qinhaijun@eswincomputing.com>
The privileged mode of next booting stage is forced to S-mode,there
change it getting from PcdPeiCorePrivilegeMode PCD.
Signed-off-by: qinhaijun <qinhaijun@eswincomputing.com>
---
Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c b/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c
index c488f03a6a..750d27567d 100644
--- a/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c
+++ b/Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.c
@@ -488,7 +488,7 @@ PeiCore (
// Scratch->next_arg1 is the device tree.
//
Scratch->next_addr = (UINTN)(PeiCoreEntryPoint);
- Scratch->next_mode = PRV_S;
+ Scratch->next_mode = FixedPcdGet32(PcdPeiCorePrivilegeMode);
DEBUG ((DEBUG_INFO, "%a: Initializing OpenSBI library for booting hart %d\n", __FUNCTION__, BootHartId));
sbi_init (Scratch);
}
@@ -728,6 +728,6 @@ SecCoreStartUpWithStack (
// Non boot hart wiil be halted waiting for SBI_HART_STARTING.
// Use HSM ecall to start non boot hart (SBI_EXT_HSM_HART_START) later on,
//
- Scratch->next_mode = PRV_S;
+ Scratch->next_mode = FixedPcdGet32(PcdPeiCorePrivilegeMode);
sbi_init (Scratch);
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-09 3:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-09 3:25 [PATCH 0/1] Get privileged mode from PCD Haijun Qin
2023-03-09 3:25 ` [PATCH 1/1] Platform/RISC-V/PlatformPkg: " qinhaijun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox