summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/emulation/qemu/qemu_debugcon.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/emulation/qemu/qemu_debugcon.c b/src/drivers/emulation/qemu/qemu_debugcon.c
index 3807524c5c..b040bd8388 100644
--- a/src/drivers/emulation/qemu/qemu_debugcon.c
+++ b/src/drivers/emulation/qemu/qemu_debugcon.c
@@ -17,14 +17,13 @@
#include <console/console.h>
#include <console/qemu_debugcon.h>
#include <arch/io.h>
-#include <arch/early_variables.h>
-static int qemu_debugcon_detected CAR_GLOBAL;
+static int qemu_debugcon_detected;
void qemu_debugcon_init(void)
{
int detected = (inb(CONFIG_CONSOLE_QEMU_DEBUGCON_PORT) == 0xe9);
- car_set_var(qemu_debugcon_detected, detected);
+ qemu_debugcon_detected = detected;
printk(BIOS_INFO, "QEMU debugcon %s [port 0x%x]\n",
detected ? "detected" : "not found",
CONFIG_CONSOLE_QEMU_DEBUGCON_PORT);
@@ -32,6 +31,6 @@ void qemu_debugcon_init(void)
void qemu_debugcon_tx_byte(unsigned char data)
{
- if (car_get_var(qemu_debugcon_detected) != 0)
+ if (qemu_debugcon_detected != 0)
outb(data, CONFIG_CONSOLE_QEMU_DEBUGCON_PORT);
}