[spcr] Use the serial port defined by the ACPI SPCR by default

On platforms where we expect ACPI tables to exist, use the serial port
defined by the ACPI Serial Port Console Redirection (SPCR) table by
default, falling back to the fixed serial port defined at build time.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-11-05 14:19:56 +00:00
parent 595ff24030
commit f2ea97102e
3 changed files with 6 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define FDT_EFI
#define MPAPI_EFI
#define NAP_EFI
#define SERIAL_FIXED
#define SERIAL_SPCR
#define NET_PROTO_IPV6 /* IPv6 protocol */
#define NET_PROTO_LLDP /* Link Layer Discovery protocol */

View File

@@ -26,7 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define REBOOT_PCBIOS
#define ACPI_RSDP
#define MPAPI_PCBIOS
#define SERIAL_FIXED
#define SERIAL_SPCR
#ifdef __x86_64__
#define IOMAP_PAGES

View File

@@ -26,6 +26,10 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define COMSPEED 115200 /* Baud rate */
#endif
/* Uncomment these to ignore the ACPI SPCR table (if present) */
//#undef SERIAL_SPCR
//#define SERIAL_FIXED
/* Early UART configuration (for bare metal prefix debugging only) */
//#define EARLY_UART_MODEL 8250
//#define EARLY_UART_REG_BASE 0x10000000