| 7823a7b5 | 11-Mar-2016 |
Pascal Brand <pascal.brand@st.com> |
Introduce CFG_CRYPTO_WITH_CE
CFG_CRYPTO_WITH_CE is inroduced in this patch, and fixes CFG_CRYPTO=n CFG_ARM64_core=n compilation issue on HiKey and Juno.
CFG_CRYPTO_WITH_CE indicates Crypto Engine a
Introduce CFG_CRYPTO_WITH_CE
CFG_CRYPTO_WITH_CE is inroduced in this patch, and fixes CFG_CRYPTO=n CFG_ARM64_core=n compilation issue on HiKey and Juno.
CFG_CRYPTO_WITH_CE indicates Crypto Engine acceleration can be used. CFG_CRYPTO_xxx_CE configuration variables are automatically set, according to other configuration variables (CFG_ARM32_core or CFG-ARM64_core, SHA and AES available).
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| c7ca8db1 | 09-Mar-2016 |
Pascal Brand <pascal.brand@st.com> |
Remove unused syscalls
A number of syscalls which are now unused have been removed: - TEE_SCN_DUMMY - TEE_SCN_DUMMY_7ARGS - TEE_SCN_GET_PROPERTY_OBSOLETE
This breaks binary compatibility
Reviewed-
Remove unused syscalls
A number of syscalls which are now unused have been removed: - TEE_SCN_DUMMY - TEE_SCN_DUMMY_7ARGS - TEE_SCN_GET_PROPERTY_OBSOLETE
This breaks binary compatibility
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| b8d220d2 | 09-Mar-2016 |
Pascal Brand <pascal.brand@st.com> |
Remove TEE_ARRAY_SIZE definition
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com> |
| 8a933cce | 26-Feb-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: remove unused core_pa2va_helper()
Removes the unused deprecated function core_pa2va_helper().
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.
core: remove unused core_pa2va_helper()
Removes the unused deprecated function core_pa2va_helper().
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 43e30efd | 14-Jan-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: deprecate old address translation functions
Deprecates the old address translation functions and removes their wrapper macros. All calls to the deprecated functions are replaced with calls to
core: deprecate old address translation functions
Deprecates the old address translation functions and removes their wrapper macros. All calls to the deprecated functions are replaced with calls to the new translation functions instead.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b7a13682 | 11-Jan-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add new address translation functions
Adds two new functions for address translations, virt_to_phys() and phys_to_virt() that eventually will replace all other such functions.
Reviewed-by: Pa
core: add new address translation functions
Adds two new functions for address translations, virt_to_phys() and phys_to_virt() that eventually will replace all other such functions.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f99cbb3b | 13-Jan-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
arm64.h add registers for address translation
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@lina
arm64.h add registers for address translation
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 7706b33c | 11-Jan-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
arm32.h add PAR 32 and 64-bit register
Adds functions and defines for PAR 32 and 64-bit register.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.or
arm32.h add PAR 32 and 64-bit register
Adds functions and defines for PAR 32 and 64-bit register.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 0b94897e | 08-Mar-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
fix: Add fault type to crash dump
Fixes previous f2930adaf8a10f2a6154ae21ec991ce7133fde82 "Add fault type to crash dump" to only interpret fault_descr for data and prefetch abort to avoid asserting
fix: Add fault type to crash dump
Fixes previous f2930adaf8a10f2a6154ae21ec991ce7133fde82 "Add fault type to crash dump" to only interpret fault_descr for data and prefetch abort to avoid asserting if fault_descr is 0 for LPAE.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU with LPAE) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f2930ada | 03-Mar-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
Add fault type to crash dump
Currently, when a data or instruction abort occurs in a TA, the crash dump does not clearly show the fault type (translation/permission/ alignment fault). This commit pr
Add fault type to crash dump
Currently, when a data or instruction abort occurs in a TA, the crash dump does not clearly show the fault type (translation/permission/ alignment fault). This commit prints out the fault type for all faults.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 1243cb51 | 01-Mar-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
qemu_armv8a: use VIRT_SECURE_MEM as secure memory
Redefine secure memory as defined by VIRT_SECURE_MEM in QEMU
Secure SRAM is used by ARM-TF as 0x0e000000..0x0f000000 Define TZDRAM_BASE to 0x0e1000
qemu_armv8a: use VIRT_SECURE_MEM as secure memory
Redefine secure memory as defined by VIRT_SECURE_MEM in QEMU
Secure SRAM is used by ARM-TF as 0x0e000000..0x0f000000 Define TZDRAM_BASE to 0x0e100000 (size 0x00f00000)
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU armv8a) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 85d83051 | 01-Mar-2016 |
Pascal Brand <pascal.brand@st.com> |
TA: clean $(link-script-dep)
Cleaning TA $(link-script-dep) is especially important when switching from 32bits mode to 64bits mode compilation of the TAs
Reviewed-by: Jerome Forissier <jerome.foris
TA: clean $(link-script-dep)
Cleaning TA $(link-script-dep) is especially important when switching from 32bits mode to 64bits mode compilation of the TAs
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| c1d38f89 | 06-Jan-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: don't clear current session before RPC
As the translation tables used to create user TA mapping are assigned per thread there's no need to clear current session before RPC and restore it when
core: don't clear current session before RPC
As the translation tables used to create user TA mapping are assigned per thread there's no need to clear current session before RPC and restore it when the RPC has returned.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e43888b8 | 27-Mar-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: new OPTEE_MSG interface
* Changes to a new OPTEE_MSG interface to work with the generic TEE driver. * Removes TEESMC64_* defines as the TEESMC32_* functions are enhanced to take 64bit values
core: new OPTEE_MSG interface
* Changes to a new OPTEE_MSG interface to work with the generic TEE driver. * Removes TEESMC64_* defines as the TEESMC32_* functions are enhanced to take 64bit values where required in pairs of 32bit registers instead. * Changes open session meta information to be passed in two value parameters instead of one memref.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey) Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 517d41fe | 29-Feb-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
travis: ensure official tags are available
* Clones optee_os git with a very large depth * Fetches tags from official OP-TEE repository to make sure tags needed to build are in place.
Reviewed-by
travis: ensure official tags are available
* Clones optee_os git with a very large depth * Fetches tags from official OP-TEE repository to make sure tags needed to build are in place.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 02598914 | 26-Feb-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
mk/compile.mk: add 'remove' flags variable for submodule
With this commit it is possible to remove a CPP/C/AS flag for the submodule being built. For instance suppose one adds the following to core/
mk/compile.mk: add 'remove' flags variable for submodule
With this commit it is possible to remove a CPP/C/AS flag for the submodule being built. For instance suppose one adds the following to core/core.mk: cflags-remove-core += -pedantic ...then the '-pedantic' flag will be stripped off from the command line when building any C file of the TEE core.
Previously, one could remove flags only on a global basis or for a single file.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6b7848e9 | 25-Feb-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm32: CFG_WITH_PAGER and CFG_TEE_GDB_BOOT are incompatible
The pager and GDB boot configurations assign different meanings to the r0 register when entering the _start function. Therefore, they must
arm32: CFG_WITH_PAGER and CFG_TEE_GDB_BOOT are incompatible
The pager and GDB boot configurations assign different meanings to the r0 register when entering the _start function. Therefore, they must not be enabled at the same time.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b09cddca | 24-Feb-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
Introduce CFLAGS32 and CFLAGS64
Previously, compile.mk and gcc.mk were using $(CFLAGS) which cannot properly handle 32-bit and 64-bit compiles. This commit introduces CFLAGS32 and CFLAGS64 instead,
Introduce CFLAGS32 and CFLAGS64
Previously, compile.mk and gcc.mk were using $(CFLAGS) which cannot properly handle 32-bit and 64-bit compiles. This commit introduces CFLAGS32 and CFLAGS64 instead, which are set to $(CFLAGS) by defaut for convenience.
For each submodule (core, ta_arm32, ta_arm64) a new internal variable is defined in the architecture makefile (core/arch/arm/arm.mk): arch-bits-$(sm). Its value is either 32 or 64. This can later be used to reference the proper CFLAGS.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 92db3e0c | 23-Feb-2016 |
Zoltan Kuscsik <zoltan.kuscsik@linaro.org> |
Add CFLAGS to libgcc lookup command
GCC may require the --sysroot command line parameter to find libgcc.a
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.f
Add CFLAGS to libgcc lookup command
GCC may require the --sysroot command line parameter to find libgcc.a
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Zoltan Kuscsik <zoltan.kuscsik@linaro.org> Signed-off-by: Zoltan Kuscsik <zoltan.kuscsik@linaro.org>
show more ...
|
| 8c1413f0 | 22-Jan-2016 |
Philippe PAGE <philippe.page@st.com> |
libtomcrypt: ASN1/DER fixes
- Synchronization with LibTomCrypt from origin/develop branch (commit 4a3b53dbee4bca1f151d9a64e9584a4c8152f0b1)
- Only "src/pk/asn1/der" directory has been synchroni
libtomcrypt: ASN1/DER fixes
- Synchronization with LibTomCrypt from origin/develop branch (commit 4a3b53dbee4bca1f151d9a64e9584a4c8152f0b1)
- Only "src/pk/asn1/der" directory has been synchronized
- Additional changes over synchronization: Several default case added in switch case condition when missing.
Signed-off-by: Philippe PAGE <philippe.page@st.com> Reviewed-by: Etienne CARRIERE <etienne.carriere@st.com> Tested-by: Etienne CARRIERE <etienne.carriere@st.com>
show more ...
|
| 91845199 | 22-Feb-2016 |
Joakim Bech <joakim.bech@linaro.org> |
Fixes buffer overflow in trace_printf
Fixes issue https://github.com/OP-TEE/optee_os/issues/660
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (
Fixes buffer overflow in trace_printf
Fixes issue https://github.com/OP-TEE/optee_os/issues/660
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 9161df50 | 16-Feb-2016 |
Pascal Brand <pascal.brand@st.com> |
Properties: Adding Microsoft specific property
As an example on how to add vendor specific properties, the microsoft specific property is added.
Original pull-request is https://github.com/OP-T
Properties: Adding Microsoft specific property
As an example on how to add vendor specific properties, the microsoft specific property is added.
Original pull-request is https://github.com/OP-TEE/optee_os/pull/460
Suggested-by: Paul Swan <paswan@microsoft.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 41d71430 | 16-Feb-2016 |
Pascal Brand <pascal.brand@st.com> |
Properties: prepare to add vendor specific properties
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com> |
| 254e1d58 | 18-Feb-2016 |
Pascal Brand <pascal.brand@st.com> |
Properties: fix required buffer len for USER_TA_PROP_TYPE_BINARY_BLOCK
In case of USER_TA_PROP_TYPE_BINARY_BLOCK that is get by a string, a short buffer can be obtained from getting the binary block
Properties: fix required buffer len for USER_TA_PROP_TYPE_BINARY_BLOCK
In case of USER_TA_PROP_TYPE_BINARY_BLOCK that is get by a string, a short buffer can be obtained from getting the binary block itself, which requires a given th, and then from the base64 encoding of the buffer, which requires a longer buffer.
This fix check both required length, to return the second one in case of a short buffer
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 51cb1442 | 04-Feb-2016 |
Jens Wiklander <jens.wiklander@linaro.org> |
thread: add thread_get_id_may_fail() function
Adds thread_get_id_may_fail() which is used by trace_ext_get_thread_id() to add the thread id for debug prints.
Reviewed-by: Pascal Brand <pascal.brand
thread: add thread_get_id_may_fail() function
Adds thread_get_id_may_fail() which is used by trace_ext_get_thread_id() to add the thread id for debug prints.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|