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 <[email protected]>
Reviewed-by: Fredrik Holmqvist <[email protected]>
This commit is contained in:
David Karoly
2021-12-14 13:19:14 +00:00
committed by Fredrik Holmqvist
parent a857758352
commit d223f9d9c2
+2 -2
View File
@@ -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);