tests: boot_time: cleanup boot_time test to work on ARM
Enabled the boot_time test on ARM SoCs, set __start_time_stamp on ARM since we don't have a free running counter similar to TSC on x86. Also moved to printing the values out as %u to increase the range of values. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
d3d9abadbe
commit
534beb34c9
3 changed files with 12 additions and 5 deletions
|
@ -87,12 +87,18 @@ extern FUNC_NORETURN void _Cstart(void);
|
|||
* @return N/A
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_BOOT_TIME_MEASUREMENT
|
||||
extern u64_t __start_time_stamp;
|
||||
#endif
|
||||
void _PrepC(void)
|
||||
{
|
||||
relocate_vector_table();
|
||||
enable_floating_point();
|
||||
_bss_zero();
|
||||
_data_copy();
|
||||
#ifdef CONFIG_BOOT_TIME_MEASUREMENT
|
||||
__start_time_stamp = 0;
|
||||
#endif
|
||||
_Cstart();
|
||||
CODE_UNREACHABLE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue