aboutsummaryrefslogtreecommitdiffstats
path: root/include/lib/smccc.h
diff options
context:
space:
mode:
authorAlexei Fedorov <Alexei.Fedorov@arm.com>2019-11-29 10:06:37 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2019-11-29 10:06:37 +0000
commit76f25eb52b10d56b8b54fc63d748c15e428e409a (patch)
tree438e45919e2d777131a06bbad945cdd77fa70ea1 /include/lib/smccc.h
parent90d5f8bdf6aeef17597aa4e9b30654d0d30d0ca5 (diff)
parente34cc0cedca6e229847c232fe58d37fad2610ce9 (diff)
downloadplatform_external_arm-trusted-firmware-76f25eb52b10d56b8b54fc63d748c15e428e409a.tar.gz
platform_external_arm-trusted-firmware-76f25eb52b10d56b8b54fc63d748c15e428e409a.tar.bz2
platform_external_arm-trusted-firmware-76f25eb52b10d56b8b54fc63d748c15e428e409a.zip
Merge "Changes to support updated register usage in SMCCC v1.2" into integration
Diffstat (limited to 'include/lib/smccc.h')
-rw-r--r--include/lib/smccc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/lib/smccc.h b/include/lib/smccc.h
index 76e60231f..dd3c578dc 100644
--- a/include/lib/smccc.h
+++ b/include/lib/smccc.h
@@ -20,7 +20,7 @@
SMCCC_VERSION_MINOR_SHIFT))
#define SMCCC_MAJOR_VERSION U(1)
-#define SMCCC_MINOR_VERSION U(1)
+#define SMCCC_MINOR_VERSION U(2)
/*******************************************************************************
* Bit definitions inside the function id as per the SMC calling convention
@@ -83,6 +83,12 @@
#define SMC_UNK -1
#define SMC_PREEMPTED -2 /* Not defined by the SMCCC */
+/* Return codes for Arm Architecture Service SMC calls */
+#define SMC_ARCH_CALL_SUCCESS 0
+#define SMC_ARCH_CALL_NOT_SUPPORTED -1
+#define SMC_ARCH_CALL_NOT_REQUIRED -2
+#define SMC_ARCH_CALL_INVAL_PARAM -3
+
/* Various flags passed to SMC handlers */
#define SMC_FROM_SECURE (U(0) << 0)
#define SMC_FROM_NON_SECURE (U(1) << 0)