From 32f82f8789932397e5d79ee5af13f56b088f1ca9 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Tue, 23 Oct 2018 19:35:02 +0200 Subject: 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 --- linuxboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linuxboot.c') diff --git a/linuxboot.c b/linuxboot.c index 65b5936..a5f1c4f 100644 --- a/linuxboot.c +++ b/linuxboot.c @@ -3,6 +3,7 @@ #include "ioport.h" #include "string.h" #include "stdio.h" +#include "benchmark.h" static inline uint16_t lduw_p(void *p) { @@ -116,7 +117,7 @@ void boot_bzimage(struct linuxboot_args *args) /* 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_BOOT); #endif asm volatile( "ljmp $0x18, $pm16_boot_linux - 0xf0000" -- cgit v1.1