summaryrefslogtreecommitdiff
path: root/ArmPkg/Include
diff options
context:
space:
mode:
authorPranav Madhu <pranav.madhu@arm.com>2022-08-24 22:14:21 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-09-05 13:52:51 +0000
commit52bf4eba454ea0f9d7502a92191eb0ab7778ba00 (patch)
tree4a938a3ce1c903210f75be7ea402c89be2c9561a /ArmPkg/Include
parentaefcc91805fd69e4aad4bc08a9f708db11cae5f0 (diff)
downloadedk2-52bf4eba454ea0f9d7502a92191eb0ab7778ba00.zip
edk2-52bf4eba454ea0f9d7502a92191eb0ab7778ba00.tar.gz
edk2-52bf4eba454ea0f9d7502a92191eb0ab7778ba00.tar.bz2
ArmPkg: Handle warm reboot request correctly
The warm reboot requests from OSPM are mapped to cold reboot. To handle the warm reboot separately from a cold reboot, update ArmSmcPsciResetSystemLib and to invoke the PSCI call with parameters for warm reboot. Signed-off-by: Pranav Madhu <pranav.madhu@arm.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'ArmPkg/Include')
-rw-r--r--ArmPkg/Include/IndustryStandard/ArmStdSmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h
index 655edc2..78ce77c 100644
--- a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h
+++ b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h
@@ -93,6 +93,8 @@
#define ARM_SMC_ID_PSCI_MIGRATE_AARCH32 0x84000005
#define ARM_SMC_ID_PSCI_SYSTEM_OFF 0x84000008
#define ARM_SMC_ID_PSCI_SYSTEM_RESET 0x84000009
+#define ARM_SMC_ID_PSCI_FEATURES 0x8400000A
+#define ARM_SMC_ID_PSCI_SYSTEM_RESET2_AARCH64 0xC4000012
/* The current PSCI version is: 0.2 */
#define ARM_SMC_PSCI_VERSION_MAJOR 0