From 034f664d21da26bf13df0005e98cb36ef74c57ab Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Tue, 23 Oct 2018 19:35:14 +0200 Subject: main: Add firmware start benchmarking point We use a different IO port than the Linux boot benchmarking point. Signed-off-by: Samuel Ortiz --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index f092289..699cc1a 100644 --- a/main.c +++ b/main.c @@ -7,6 +7,7 @@ #include "fw_cfg.h" #include "pflash.h" #include "pci.h" +#include "benchmark.h" static void set_realmode_int(int vec, void *p) { @@ -89,6 +90,9 @@ static bool detect_cbfs_and_boot(void) int __attribute__ ((section (".text.startup"))) main(void) { +#ifdef BENCHMARK_HACK + outb(FW_EXIT_PORT, FW_START); +#endif setup_hw(); // Now go to the F-segment: we need to move away from flash area -- cgit v1.1