aboutsummaryrefslogtreecommitdiff
path: root/fw_cfg.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2018-10-23 19:35:02 +0200
committerPaolo Bonzini <bonzini@gnu.org>2018-10-24 00:37:50 +0200
commit32f82f8789932397e5d79ee5af13f56b088f1ca9 (patch)
treef735bc176917abeffb61ded7f121f9ad89637fa8 /fw_cfg.c
parentac9488f26528394856b94bda0797f5bd9c69a26a (diff)
downloadqboot-32f82f8789932397e5d79ee5af13f56b088f1ca9.zip
qboot-32f82f8789932397e5d79ee5af13f56b088f1ca9.tar.gz
qboot-32f82f8789932397e5d79ee5af13f56b088f1ca9.tar.bz2
benchmark: Define exit points and values
Benchmarking IO port addresses and return values are now defined through a dedicated header. Each exit point can have its own IO port address and return value. With this we are able to discriminate between similar code paths through the QEMU process return values or between different code paths by having the QEMU debugexit device monitoring different IO port addresses. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'fw_cfg.c')
-rw-r--r--fw_cfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fw_cfg.c b/fw_cfg.c
index 660c00d..f5aac73 100644
--- a/fw_cfg.c
+++ b/fw_cfg.c
@@ -7,6 +7,7 @@
#include "bswap.h"
#include "linuxboot.h"
#include "multiboot.h"
+#include "benchmark.h"
struct fw_cfg_file {
uint32_t size;
@@ -174,7 +175,7 @@ static void boot_multiboot_from_fw_cfg(void)
/* Exit just before getting to vmlinuz, so that it is easy
* to time/profile the firmware.
*/
- outb(0xf4, 1);
+ outb(LINUX_EXIT_PORT, LINUX_START_FWCFG);
#endif
fw_cfg_select(FW_CFG_KERNEL_ENTRY);