main: Add firmware start benchmarking point We use a different IO port than the Linux boot benchmarking point. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
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 @@ 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