arm-trusted-firmware/include/lib
Antonio Nino Diaz 4abd7fa71f Redefine SMC_UNK as -1 instead of 0xFFFFFFFF
According to the SMC Calling Convention (ARM DEN0028B):

    The Unknown SMC Function Identifier is a sign-extended value of
    (-1) that is returned in R0, W0 or X0 register.

The value wasn't sign-extended because it was defined as a 32-bit
unsigned value (0xFFFFFFFF).

SMC_PREEMPT has been redefined as -2 for the same reason.

NOTE: This might be a compatibility break for some AArch64 platforms
that don't follow the previous version of the SMCCC (ARM DEN0028A)
correctly. That document specifies that only the bottom 32 bits of the
returned value must be checked. If a platform relies on the top 32 bits
of the result being 0 (so that SMC_UNK is 0x00000000FFFFFFFF), it will
have to fix its code to comply with the SMCCC.

Change-Id: I7f7b109f6b30c114fe570aa0ead3c335383cb54d
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2018-02-15 15:04:34 +00:00
..
aarch32 AMU: Implement context save/restore for aarch32 2018-01-31 14:08:22 +00:00
aarch64 Merge pull request #1197 from dp-arm/dp/amu 2018-01-12 09:02:24 +00:00
cpus Merge pull request #1228 from dp-arm/dp/cve_2017_5715 2018-01-25 00:06:50 +00:00
el3_runtime Optimize/cleanup BPIALL workaround 2018-01-29 09:58:57 +00:00
extensions AMU: Implement context save/restore for aarch32 2018-01-31 14:08:22 +00:00
libfdt libfdt: Replace v1.4.1 by v1.4.2 2017-01-16 17:26:04 +00:00
pmf Fix order of #includes 2017-07-12 14:45:31 +01:00
psci Update PSCI version to 1.1 2017-10-13 12:39:08 +01:00
stdlib Fix stdlib defines for AArch32 2017-06-09 14:47:52 +01:00
xlat_tables bl2-el3: Add BL2_EL3 image 2018-01-18 09:42:35 +00:00
zlib zlib: add gunzip() support 2018-02-02 00:18:54 +09:00
bakery_lock.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
cassert.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
coreboot.h Add platform-independent coreboot support library 2018-01-19 15:21:12 -08:00
mmio.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
optee_utils.h Add Trusted OS extra image parsing support for ARM standard platforms 2017-08-09 18:06:05 +08:00
runtime_instr.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
semihosting.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
smcc.h Redefine SMC_UNK as -1 instead of 0xFFFFFFFF 2018-02-15 15:04:34 +00:00
spinlock.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
utils.h utils: rename struct mem_region_t to struct mem_region 2018-01-16 23:27:00 +09:00
utils_def.h Merge pull request #1235 from jwerner-chromium/JW_udelay 2018-01-30 08:59:35 +00:00