intel/fsp2_0: Add TS_BEFORE_RAMINIT and TS_AFTER_RAMINIT

Change-Id: I99dbef5d52e4fc6cde22876216052cbe998822cf
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34971
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Kyösti Mälkki 2019-08-18 07:40:43 +03:00
parent a7cac0a681
commit 0889e9392c
1 changed files with 4 additions and 0 deletions

View File

@ -389,6 +389,8 @@ void fsp_memory_init(bool s3wake)
struct memranges memmap; struct memranges memmap;
struct range_entry freeranges[2]; struct range_entry freeranges[2];
timestamp_add_now(TS_BEFORE_INITRAM);
if (CONFIG(ELOG_BOOT_COUNT) && !s3wake) if (CONFIG(ELOG_BOOT_COUNT) && !s3wake)
boot_count_increment(); boot_count_increment();
@ -417,4 +419,6 @@ void fsp_memory_init(bool s3wake)
prog_segment_loaded(hdr.image_base, hdr.image_size, SEG_FINAL); prog_segment_loaded(hdr.image_base, hdr.image_size, SEG_FINAL);
do_fsp_memory_init(&hdr, s3wake, &memmap); do_fsp_memory_init(&hdr, s3wake, &memmap);
timestamp_add_now(TS_AFTER_INITRAM);
} }