Add more timestamps in coreboot.
[coreboot.git] / src / arch / x86 / lib / cbfs_and_run.c
index ad36ddc03091c53bb330d921540e607a408646b2..53f06ee5d42aec22ade97b16887ccd2b95fbaa4e 100644 (file)
 #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"