diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2018-10-23 19:35:02 +0200 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2018-10-24 00:37:50 +0200 |
commit | 32f82f8789932397e5d79ee5af13f56b088f1ca9 (patch) | |
tree | f735bc176917abeffb61ded7f121f9ad89637fa8 /benchmark.h | |
parent | ac9488f26528394856b94bda0797f5bd9c69a26a (diff) | |
download | qboot-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 'benchmark.h')
-rw-r--r-- | benchmark.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/benchmark.h b/benchmark.h new file mode 100644 index 0000000..089c549 --- /dev/null +++ b/benchmark.h @@ -0,0 +1,13 @@ +#ifndef BENCHMARK_H +#define BENCHMARK_H + +/* IO ports for different exit points */ +#define LINUX_EXIT_PORT 0xf4 +#define FW_EXIT_PORT 0xf5 + +/* Exit point values */ +#define FW_START 1 +#define LINUX_START_FWCFG 2 +#define LINUX_START_BOOT 3 + +#endif |