| 4aeff297 | 16-Dec-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
Add __rodata_unpaged macro
Adds a __rodata_unpaged macro that will put the object in the unpaged rodata section.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jen
Add __rodata_unpaged macro
Adds a __rodata_unpaged macro that will put the object in the unpaged rodata section.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9fa130bf | 30-Nov-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Add KEEP_PAGER() and KEEP_INIT() macros
Adds KEEP_PAGER(sym) and KEEP_INIT(sym) macros which makes supplied symbol available for pager or init code respectively.
Reviewed-by: Joakim Bech <joa
core: Add KEEP_PAGER() and KEEP_INIT() macros
Adds KEEP_PAGER(sym) and KEEP_INIT(sym) macros which makes supplied symbol available for pager or init code respectively.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 8b4ed803 | 08-Jan-2016 |
Joakim Bech <joakim.bech@linaro.org> |
Remove unused functions
After finding a set of functions potentially not used anywhere (using gcc -Wl,--print-gc-sections) I did grep'd for those functions and the ones that couldn't be found to be
Remove unused functions
After finding a set of functions potentially not used anywhere (using gcc -Wl,--print-gc-sections) I did grep'd for those functions and the ones that couldn't be found to be used anywhere has been deleted (although utility functions, LibTomCrypt etc hasn't been touched).
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> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ae3d06c1 | 31-Dec-2015 |
Paul Swan <Paul.Swan@microsoft.com> |
Adjust the optional flags according to TA_FLAG_INSTANCE_KEEP_ALIVE
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand
Adjust the optional flags according to TA_FLAG_INSTANCE_KEEP_ALIVE
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Paul Swan <paswan@microsoft.com> Tested-by: Youssef Esmat <Youssef.Esmat@microsoft.com> Signed-off-by: Paul Swan <paswan@microsoft.com>
show more ...
|
| 7215f52d | 07-Jan-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: trace_syscall(): print the syscall name in addition to its number
When CFG_TEE_CORE_LOG_LEVEL >= 4, a debug trace is printed whenever a system call is entered. Currently it just prints the sys
core: trace_syscall(): print the syscall name in addition to its number
When CFG_TEE_CORE_LOG_LEVEL >= 4, a debug trace is printed whenever a system call is entered. Currently it just prints the syscall number, which is not very convenient. This commit adds the name of the syscall function to the trace.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| dfa1ae1e | 07-Jan-2016 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm32: tee_svc_do_call() must preserve r5 and r6
Since the assembly function tee_svc_do_call() uses registers r5 and r6, it must push them on entry and restore them on exit.
Signed-off-by: Jerome F
arm32: tee_svc_do_call() must preserve r5 and r6
Since the assembly function tee_svc_do_call() uses registers r5 and r6, it must push them on entry and restore them on exit.
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 ...
|
| a189a570 | 17-Dec-2015 |
Pascal Brand <pascal.brand@st.com> |
ltc: mutex support, in case of no mutex
Some platforms, other than arm, may not support multiple threads, or may have other support than the LTC_OPTEE_THREAD thread scheme.
This patch defines LTC_O
ltc: mutex support, in case of no mutex
Some platforms, other than arm, may not support multiple threads, or may have other support than the LTC_OPTEE_THREAD thread scheme.
This patch defines LTC_OPTEE_THREAD for arm only platform, and defines the no mutex mechanism in libtomcrypt
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 ...
|
| f6d80bd6 | 30-Mar-2015 |
Pascal Brand <pascal.brand.com> |
Stats on allocation
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne CARRIERE <etienne.carriere@st.com> Tested-by: Etienne CARRIERE <etienne.carriere@st.com> Reviewed-by:
Stats on allocation
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne CARRIERE <etienne.carriere@st.com> Tested-by: Etienne CARRIERE <etienne.carriere@st.com> Reviewed-by: Pascal BRAND <pascal.brand@st.com> Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| f17dfc0c | 11-Dec-2015 |
Pascal Brand <pascal.brand@st.com> |
Merge files tee_mm and tee_mm_unpg
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com> |
| dc5c6bfa | 11-Dec-2015 |
Victor Chong <victor.chong@linaro.org> |
plat-hikey: change default console to UART3
96boards community now uses UART3 as default for all SW components. Change default for optee_os to UART3 as well to be inline with them.
Signed-off-by: V
plat-hikey: change default console to UART3
96boards community now uses UART3 as default for all SW components. Change default for optee_os to UART3 as well to be inline with them.
Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 876d549a | 09-Dec-2015 |
Victor Chong <victor.chong@linaro.org> |
plat-mediatek: generate new TA dev kit for ARM64
Signed-off-by: Victor Chong <victor.chong@linaro.org> Tested-by: Victor Chong <victor.chong@linaro.org> (mediatek build only) Reviewed-by: Pascal Bra
plat-mediatek: generate new TA dev kit for ARM64
Signed-off-by: Victor Chong <victor.chong@linaro.org> Tested-by: Victor Chong <victor.chong@linaro.org> (mediatek build only) Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 9fcc9dff | 11-Dec-2015 |
Victor Chong <victor.chong@linaro.org> |
Generate new TA dev kit for ARM32 platforms
Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.foriss
Generate new TA dev kit for ARM32 platforms
Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 5dd05ba7 | 16-Nov-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core/arm64: core local flags
Updates core local flags (irq, fiq, abort, tmp-stack) in all relevant exception handlers.
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (FVP) Signed-off-by: Jen
core/arm64: core local flags
Updates core local flags (irq, fiq, abort, tmp-stack) in all relevant exception handlers.
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (FVP) Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| bc1ac4ab | 16-Nov-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core/arm64: shrink struct thread_core_local |
| d5fbeadc | 16-Nov-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core/arm64: clean assembly IRQ/FIQ handlers
Clean the assembly part of the IRQ and FIQ handlers.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 27ecfc4d | 11-Dec-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
arm: bugfix compile error in tee_mmu_map()
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wikland
arm: bugfix compile error in tee_mmu_map()
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 ...
|
| 7b3f7edc | 10-Dec-2015 |
Victor Chong <victor.chong@linaro.org> |
Fix compile error with newer gcc
$ make \ CFG_ARM64_core=y \ CROSS_COMPILE_ta_arm64=aarch64-linux-gnu- \ CROSS_COMPILE=arm-linux-gnueabihf- \ CROSS_COMPILE_core=aarch64-linux-gnu- \ CROSS_COMPI
Fix compile error with newer gcc
$ make \ CFG_ARM64_core=y \ CROSS_COMPILE_ta_arm64=aarch64-linux-gnu- \ CROSS_COMPILE=arm-linux-gnueabihf- \ CROSS_COMPILE_core=aarch64-linux-gnu- \ CROSS_COMPILE_ta_arm32=arm-linux-gnueabihf- \ DEBUG=0 \ PLATFORM=hikey \ CFG_TEE_CORE_LOG_LEVEL=2 \ CFG_TEE_TA_LOG_LEVEL=3
core/arch/arm/mm/tee_mmu.c: In function 'tee_mmu_map': core/arch/arm/mm/tee_mmu.c:266:10: error: 'pa' may be used uninitialized in this function [-Werror=maybe-uninitialized] paddr_t pa; ^
gcc version 4.9.2 20140811 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.08 - Linaro GCC 4.9-2014.08) is ok but gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) generates this error.
Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| bb6e1b3e | 03-Dec-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
plat-hikey: generate new TA dev kit for ARM64
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wikl
plat-hikey: generate new TA dev kit for ARM64
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 ...
|
| 945694b9 | 02-Dec-2015 |
Pascal Brand <pascal.brand@st.com> |
alloc: fix mutex usage
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> |
| ff88e8ad | 04-Dec-2015 |
Pascal Brand <pascal.brand@st.com> |
Fix tee_ta_rpc_load in case of out of memory
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand
Fix tee_ta_rpc_load in case of out of memory
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> 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 ...
|
| 8fdf2973 | 04-Dec-2015 |
Pascal Brand <pascal.brand@st.com> |
Add mutex on time
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU) Signed-
Add mutex on time
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> 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 ...
|
| bee02359 | 12-Nov-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: support running 64bit TA
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP Aarch32/64 TA) Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey Aarch32/64 TA) Reviewe
core: support running 64bit TA
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP Aarch32/64 TA) Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey Aarch32/64 TA) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d9e14f29 | 12-Nov-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: support loading ELF64 TA
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> |
| a702f5e7 | 12-Nov-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: split thread_enter_user_mode
* elf_load_head() returns if it's a 32-bit or 64-bit TA (only 32-bit for now) * The bool is_32bit is propagated to the C function thread_enter_user_mode() whic
core: split thread_enter_user_mode
* elf_load_head() returns if it's a 32-bit or 64-bit TA (only 32-bit for now) * The bool is_32bit is propagated to the C function thread_enter_user_mode() which initializes a value for SPSR used to enter TA
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| f07647d4 | 25-Nov-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core/arm64: fix get_thread_ctx macro
Fixes the macro get_thread_ctx to read current thread as a 32-bit integer as it should.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Signed-off-by: Jens
core/arm64: fix get_thread_ctx macro
Fixes the macro get_thread_ctx to read current thread as a 32-bit integer as it should.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|