aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-05-30 14:37:32 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-05-30 14:41:20 +0200
commitac9a37fe1e7a4789145f65fcf5c9ad44c0f667bc (patch)
tree9752974ab47c9f50ff3e7b8c5d847b8b70ac2398
parentad60cab217742b090fdecc9edcacc0acee882aa0 (diff)
downloadqboot-ac9a37fe1e7a4789145f65fcf5c9ad44c0f667bc.zip
qboot-ac9a37fe1e7a4789145f65fcf5c9ad44c0f667bc.tar.gz
qboot-ac9a37fe1e7a4789145f65fcf5c9ad44c0f667bc.tar.bz2
apply benchmarking hack to multiboot as well
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--fw_cfg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fw_cfg.c b/fw_cfg.c
index 684c0f6..f8aea5a 100644
--- a/fw_cfg.c
+++ b/fw_cfg.c
@@ -99,6 +99,13 @@ static void boot_multiboot_from_fw_cfg(void)
mb->mmap_length += sizeof(*mbmem);
}
+#ifdef BENCHMARK_HACK
+ /* Exit just before getting to vmlinuz, so that it is easy
+ * to time/profile the firmware.
+ */
+ outb(0xf4, 1);
+#endif
+
fw_cfg_select(FW_CFG_KERNEL_ENTRY);
kernel_entry = (void *) fw_cfg_readl_le();
asm volatile("jmp *%2" : : "a" (0x2badb002), "b"(mb), "c"(kernel_entry));