Add more timestamps in coreboot.
This adds a number of timestamps in ramstage and romstage so we can figure out where execution time goes. Change-Id: Iea17c08774e623fc1ca3fa4505b70523ba4cbf01 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/749 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Stefan Reinauer
parent
10fea92477
commit
bf729baa2c
@@ -20,16 +20,19 @@
|
||||
#include <console/console.h>
|
||||
#include <cbfs.h>
|
||||
#include <arch/stages.h>
|
||||
#include <timestamp.h>
|
||||
|
||||
static void cbfs_and_run_core(const char *filename, unsigned ebp)
|
||||
{
|
||||
u8 *dst;
|
||||
|
||||
timestamp_add_now(TS_START_COPYRAM);
|
||||
print_debug("Loading image.\n");
|
||||
dst = cbfs_load_stage(filename);
|
||||
if ((void *)dst == (void *) -1)
|
||||
die("FATAL: Essential component is missing.\n");
|
||||
|
||||
timestamp_add_now(TS_END_COPYRAM);
|
||||
print_debug("Jumping to image.\n");
|
||||
__asm__ volatile (
|
||||
"movl %%eax, %%ebp\n"
|
||||
|
Reference in New Issue
Block a user