From d223f9d9c2967e2055bf68b22f6a5a4e22276065 Mon Sep 17 00:00:00 2001 From: David Karoly Date: Thu, 2 Dec 2021 16:04:03 +0100 Subject: [PATCH] boot/efi/serial: fix legacy mode for x86 Change-Id: I44fd33289da94e9520c6c202ac96c4ca8e511638 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4754 Tested-by: Commit checker robot Reviewed-by: Fredrik Holmqvist --- src/system/boot/platform/efi/serial.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/boot/platform/efi/serial.cpp b/src/system/boot/platform/efi/serial.cpp index 2fb41d85ed..5a3bafb9be 100644 --- a/src/system/boot/platform/efi/serial.cpp +++ b/src/system/boot/platform/efi/serial.cpp @@ -74,7 +74,7 @@ serial_putc(char ch) return; } - #if defined(__x86__) || defined(__x86_64__) + #if defined(__i386__) || defined(__x86_64__) while ((in8(sSerialBasePort + SERIAL_LINE_STATUS) & 0x20) == 0) asm volatile ("pause;"); @@ -145,7 +145,7 @@ serial_switch_to_legacy(void) sSerial = NULL; sSerialUsesEFI = false; -#if defined(__x86__) || defined(__x86_64__) +#if defined(__i386__) || defined(__x86_64__) memset(gKernelArgs.platform_args.serial_base_ports, 0, sizeof(uint16) * MAX_SERIAL_PORTS);