diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2018-10-23 19:35:14 +0200 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2018-10-24 00:37:50 +0200 |
commit | 034f664d21da26bf13df0005e98cb36ef74c57ab (patch) | |
tree | 0bdd27e6150eb6a66797ce6d8539b98d88a1f34c | |
parent | 32f82f8789932397e5d79ee5af13f56b088f1ca9 (diff) | |
download | qboot-034f664d21da26bf13df0005e98cb36ef74c57ab.zip qboot-034f664d21da26bf13df0005e98cb36ef74c57ab.tar.gz qboot-034f664d21da26bf13df0005e98cb36ef74c57ab.tar.bz2 |
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>
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |