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 <no-reply+buildbot@haiku-os.org> Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
This commit is contained in:
parent
a857758352
commit
d223f9d9c2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user