- Mar 04, 2019
-
-
Added includes and sources of libc to the makefiles. Change-Id: I8e84db9634e0df7d51caa5c5858311672dd3a8d1 Signed-off-by:
Ambroise Vincent <ambroise.vincent@arm.com>
-
Reflect the changes in the structure of libc. NB: the include of stdarg.h in nvm_results_helpers.c is not in alphabetical order because it needs to be included before stdio.h. Fixing this would require further changes. Change-Id: I07f62a3450802833408ff3e1f950fd3b643e5e33 Signed-off-by:
Ambroise Vincent <ambroise.vincent@arm.com>
-
Add support for functions used in TFTF but not in TF-A. Replaced calls to plat_panic_handler with calls to panic, since there is no implementation of the former in TFTF. Change-Id: Ic10de2c6e749db97b932cd7ffbb6067b5befe914 Signed-off-by:
Ambroise Vincent <ambroise.vincent@arm.com>
-
Ambroise Vincent authored
Keep uuid, rand and strncpy for compatibility reasons Change-Id: Iefd82a5c9df48f6159732027e40a58f7d6afc09f Signed-off-by:
Ambroise Vincent <ambroise.vincent@arm.com>
-
Ambroise Vincent authored
Based on arm-trusted-firware commit 873e394b3bf93214a441f9f98237b58fbbea55aa Change-Id: I510e092f2b9ff333e9461bdde8d80ed1fab1460c Signed-off-by:
Ambroise Vincent <ambroise.vincent@arm.com>
-
- Feb 25, 2019
-
-
John Tsichritzis authored
Change-Id: Iee1998b9b039dfd21a3ef38c5afeae3fc65569c2 Signed-off-by:
John Tsichritzis <john.tsichritzis@arm.com>
-
- Feb 12, 2019
-
-
Sandrine Bailleux authored
-
- Feb 11, 2019
-
-
Antonio Nino Diaz authored
Change-Id: Ieb56d0639efd29c2695751b2b36cc98ce2c90dab Signed-off-by:
Antonio Nino Diaz <antonio.ninodiaz@arm.com>
-
- Feb 08, 2019
-
-
Joel Hutton authored
Manual tests now rely on passing a flag to dump the flash to a file, then passing that flash file back in when relaunching the model to continue the tests. Change-Id: I77d226b9a1d50f16fd3b13e1254f5152293b23bf Signed-off-by:
Joel Hutton <Joel.Hutton@Arm.com>
-
- Jan 30, 2019
-
-
Antonio Nino Diaz authored
SMCCC v2.0 is no longer required for SPM, and won't be needed in the future. The SPM implementation based on SPCI and SPRT was using it, but it has been adapted to SMCCC v1.0. Change-Id: I624b32f9547274b50add4ea81b485cc9f5121e53 Signed-off-by:
Antonio Nino Diaz <antonio.ninodiaz@arm.com>
-
- Jan 28, 2019
-
-
Sandrine Bailleux authored
* changes: Dump some registers when hitting an unexpected exception Improve readability of TFTF exceptions code
-
- Jan 25, 2019
-
-
Enforce full include path for includes. The reason for this change is that having a global namespace for includes isn't a good idea. It defeats one of the advantages of having folders and it introduces problems that are sometimes subtle (because you may not know the header you are actually including if there are two of them with the same name). Change-Id: I45e912b16c9fff81f50840dad7e7f90ed6637b2a Signed-off-by:
Antonio Nino Diaz <antonio.ninodiaz@arm.com>
-
- Jan 24, 2019
-
-
Sandrine Bailleux authored
At the moment, no information is printed on the UART whenever we hit an unexpected exception, not even an error message. This is not great from the user's perspective, who has got no idea of what is going on. Now we print an error message, as well as the state of some of the registers. This includes general-purpose registers, as well as some system registers. This is implemented for TFTF running: - in AArch64 state, at EL2; - in AArch64 state, at NS-EL1; - in AArch32 state. We might want to dump more registers in the future but this patch at least provides a basis we can build upon. Also, the SP_EL0 has been removed from the list of registers saved in the CPU context because TFTF always uses SP_ELx and does not touch SP_EL0 at all. Change-Id: I56e4afa917b53b5ccccff1d5d09ac8ccfaa6ae49 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
Sandrine Bailleux authored
The only exceptions that TFTF expects are IRQs from the current exception level. All other exceptions are unhandled and put the TFTF into an irrecoverable state. Introduce an unhandled_exception macro that makes it clearer. Change-Id: Ia64600d540007a648c14d8663c91c60c8591eae6 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
- Jan 23, 2019
-
-
Sandrine Bailleux authored
* changes: hikey960: Fake only 1 core hikey960: Enable SGI hikey960: Enable MMU Hikey960 port: initial commit
-
- Jan 18, 2019
-
-
Sandrine Bailleux authored
This allows to use assertions in interrupt context (which we do in some places currently). Before this patch, a CPU could dead lock itself by: 1. acquiring the printf lock in the normal execution context; 2. taking an interrupt while still holding the lock; 3. inside the interrupt handler, executing an assertion check that fails and thus tries to print an error message on the UART. In a situation where several CPUs might be executing assert() at the same time, we will now get interleaved messages but that should be pretty rare. Change-Id: I6d1603300f6a3ea5756a46338cb950b7ca3e7956 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
- Jan 15, 2019
-
-
Sandrine Bailleux authored
Release builds used to have a special variant of these macros without the source code location information. This kind of mechanism is useful when writing software that needs both a development and production version so that the source code information is not leaked when the device is in the field. However, in the context of TF-A Tests, it makes little sense, as it's unlikely somebody would ever ship a device with TF-A Tests installed on it. Change-Id: Ic14ad87c2756762807ee71142f21d6973233144e Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
Sandrine Bailleux authored
* changes: Rework IRQ vector code Add CFI debug info to vector entries Improve readability of exceptions stubs code Fix comments in AArch64 exceptions code
-
Sandrine Bailleux authored
Some tests have proven unreliable over time. They often time out and the root cause of the problem is unknown as of today. This root cause needs to be investigated and fixed but until then, this patch isolates these tests in their own pool. This allows us to set different trust levels in our CI: - The stable tests are trusted to call out the validity of a patch. - The unstable tests are only informative. Change-Id: Ia8ebb5a29a523ef3a1f324dbd3ddddac02254fd8 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
- Jan 14, 2019
-
-
Sandrine Bailleux authored
Jump straight to a function so that we are not constrained in the 32-instruction limit. Turn the code saving and restoring general-purpose registers into a macro (as opposed to a function), thus removing the need to save the link register before anything else. Overall, this makes the code more straight-forward as we can more clearly see that registers are saved from x0 to x30 (in this order) without any magic twist. Change-Id: Ic70ceee62bec5efc6f6b6a23a7bd4c1d6c2f8a97 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
Sandrine Bailleux authored
This is based on TF-A commit 31823b6961d35a5d53e81d3bf4977ad7b2be81dd. Add Call Frame Information assembler directives to vector entries so that debuggers display the backtrace of functions that triggered a synchronous exception. For example, a function triggering a data abort will be easier to debug if the backtrace can be displayed from a breakpoint at the beginning of the synchronous exception vector. DS-5 needs CFI otherwise it will not attempt to display the backtrace. Other debuggers might have other needs. These debug information are stored in the ELF file but not in the final binary. Change-Id: I1129419f318465049f53b5e41c304ea61fa44483 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
Sandrine Bailleux authored
Change-Id: Ic9b90d7284b0bbde85fe3e31a025aab40360de03 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
Sandrine Bailleux authored
Change-Id: I88216c14056bee4405233b3e47b59cd3ea355322 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
- Jan 11, 2019
-
-
John Tsichritzis authored
hikey960 has an unresolved power management bug, so for now we can only run single core tests. The bug report can be found here: https://bugs.96boards.org/show_bug.cgi?id=783 Change-Id: I206fafd7677428f81f48d1c7c1d419402149bd37 Co-authored-by:
John Tsichritzis <john.tsichritzis@arm.com> Co-authored-by:
Joel Hutton <Joel.Hutton@Arm.com> Signed-off-by:
Joel Hutton <Joel.Hutton@Arm.com>
-
John Tsichritzis authored
Change-Id: I728dcf1121317b52418519421cd12929b00dfac0 Co-authored-by:
John Tsichritzis <john.tsichritzis@arm.com> Co-authored-by:
Joel Hutton <Joel.Hutton@Arm.com> Signed-off-by:
Joel Hutton <Joel.Hutton@Arm.com>
-
John Tsichritzis authored
defines and memory mapping for hikey960 Change-Id: I35c57ab0d17553d4f9e1d1b027c4a2308722a870 Co-authored-by:
John Tsichritzis <john.tsichritzis@arm.com> Co-authored-by:
Joel Hutton <Joel.Hutton@Arm.com> Signed-off-by:
Joel Hutton <Joel.Hutton@Arm.com>
-
John Tsichritzis authored
Initial commit to allow building hikey960 as a target Change-Id: Ifaae59b06aaa4065668f05e17eac1a7e2a19ca14 Co-authored-by:
John Tsichritzis <john.tsichritzis@arm.com> Co-authored-by:
Joel Hutton <Joel.Hutton@Arm.com> Signed-off-by:
Joel Hutton <Joel.Hutton@Arm.com>
-
Antonio Nino Diaz authored
ARMv8.2-TTCNP is mandatory from ARMv8.2 onwards, but it can be implemented in CPUs that don't implement all mandatory 8.2 features (and so have to claim to be a lower version). This patch removes usage of the ARM_ARCH_AT_LEAST() macro and uses system ID registers to detect whether it is needed to set the bit or not. Change-Id: Ie818c1b91fc319f194d17e21da922798a2a76ec6 Signed-off-by:
Antonio Nino Diaz <antonio.ninodiaz@arm.com>
-
Antonio Nino Diaz authored
Change-Id: Ia4850f58f4519a71a049290839027ea7a0521415 Signed-off-by:
Antonio Nino Diaz <antonio.ninodiaz@arm.com>
-
- Jan 07, 2019
-
-
Sandrine Bailleux authored
Change-Id: Id55a62e8610f0b162a26a0eeb8f69e4a87910ed7 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
Sandrine Bailleux authored
* changes: Relax SMC tests when Trusted OS is present Make UUID buffer optional for is_trusted_os_present()
-
Sandrine Bailleux authored
* changes: SPM: Test interrupt preemption SPM: Test blocking requests while busy
-
Sandrine Bailleux authored
When receiving an invalid SMC function ID, the Trusted OS is free to return any error code in x0 but it should at least preserve the values of x1-x3. The SMC tests expected the Trusted OS to return -1 in x0, which is too strong of an assumption. This patch relaxes them to check x1-x3 but ignore x0. Change-Id: I6d516319afeaee9af6aa3674a48c13dba6f7af69 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
Sandrine Bailleux authored
The caller might simply want to know whether there is a Trusted OS, without the need to identify it. Change-Id: I97eef8b6e6c4cb948d48735cd7170fced98aee9a Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
- Jan 04, 2019
-
-
Sandrine Bailleux authored
* changes: Share AArch32 arch. init code between cold/warm boot code Rework TFTF AArch64 entry point code
-
Sandrine Bailleux authored
Change-Id: I3062f88a09b481f7cb8d03210ea99e33a6a98774 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
- Jan 03, 2019
-
-
Sandrine Bailleux authored
Exercise all combinations of SMCs: fast or yielding, SMC32 or SMC64 calling convention, from a 32-bit caller or a 64-bit one. Change-Id: I6d23549818db7f1b3fd0cb4b46e5a592b04b5289 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
Sandrine Bailleux authored
'fid' (short for 'function ID') makes for a more explicit name. Change-Id: I41d90c39979162142b0377a68f4be90dc31de253 Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-
- Dec 21, 2018
-
-
Sandrine Bailleux authored
* changes: Remove redundant error message in tftf_initialise_timer() Remove prints from VExpress NOR flash driver Remove prints in get_overall_test_result() Remove SHELL_COLOR build flag Do not print CPU MPID in mp_printf() Use vprintf() inside mp_printf() Add vprintf() in standard C library
-
- Dec 20, 2018
-
-
Sandrine Bailleux authored
waitus() was missing an instruction barrier before reading the system counter value. As a result, the CPU could speculatively read it and we would potentially base our delay loop on stale values. waitus() now uses the syscounter_read() helper function introduced in the previous patch, which has the required ISB. Change-Id: Ic37254485a9cdc4d4d2c86d245aa3273454e82ff Signed-off-by:
Sandrine Bailleux <sandrine.bailleux@arm.com>
-