aboutsummaryrefslogtreecommitdiffstats
path: root/src/misc.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-02-07 22:42:25 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-02-10 22:20:35 -0500
commit02313b205b0a461579c2799e31dc3f898c0b63ae (patch)
tree853dede226030774cda64bc67c9a826a6e5c9795 /src/misc.c
parentb5c7da68667c782bb5049a68a36995cde4c70aaf (diff)
downloadseabios-02313b205b0a461579c2799e31dc3f898c0b63ae.tar.gz
Add runningOnQEMU() and runningOnXen() for runtime platform detection.
Introduce standard for performing and inspecting the run-time detection of para-virtualized environments. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c
index bcc450ad..3b2ffc11 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -16,6 +16,8 @@ u32 RamSize VAR16VISIBLE;
u64 RamSizeOver4G;
// Space for bios tables built an run-time.
char BiosTableSpace[CONFIG_MAX_BIOSTABLE] __aligned(MALLOC_MIN_ALIGN) VAR16VISIBLE;
+// Type of emulator platform.
+int PlatformRunningOn VAR16VISIBLE;
/****************************************************************