aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2018-10-23 19:35:14 +0200
committerPaolo Bonzini <bonzini@gnu.org>2018-10-24 00:37:50 +0200
commit034f664d21da26bf13df0005e98cb36ef74c57ab (patch)
tree0bdd27e6150eb6a66797ce6d8539b98d88a1f34c
parent32f82f8789932397e5d79ee5af13f56b088f1ca9 (diff)
downloadqboot-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.c4
1 files changed, 4 insertions, 0 deletions
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