aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-05-21 15:19:41 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-05-21 15:19:41 +0200
commit9701a97e3f68c2a5f0d887da31fef76199a90d1d (patch)
treef20db2ab7ccf1102bac68679df5b2d6f43f8c0bf
parentb081143b378235706c45c8fa89f800f0df717380 (diff)
downloadqboot-9701a97e3f68c2a5f0d887da31fef76199a90d1d.zip
qboot-9701a97e3f68c2a5f0d887da31fef76199a90d1d.tar.gz
qboot-9701a97e3f68c2a5f0d887da31fef76199a90d1d.tar.bz2
benchmarking hack
-rw-r--r--linuxboot.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linuxboot.c b/linuxboot.c
index 7ce07bc..cc64811 100644
--- a/linuxboot.c
+++ b/linuxboot.c
@@ -1,5 +1,6 @@
#include "bios.h"
#include "linuxboot.h"
+#include "ioport.h"
#include "string.h"
#include "stdio.h"
@@ -110,6 +111,12 @@ bool parse_bzimage(struct linuxboot_args *args)
void boot_bzimage(struct linuxboot_args *args)
{
memcpy(args->setup_addr, args->header, sizeof(args->header));
+#ifdef BENCHMARK_HACK
+ /* Exit just before getting to vmlinuz, so that it is easy
+ * to time/profile the firmware.
+ */
+ outb(0xf4, 1);
+#endif
asm volatile(
"ljmp $0x18, $pm16_boot_linux - 0xf0000"
: :