]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[spcr] Use the serial port defined by the ACPI SPCR by default
authorMichael Brown <mcb30@ipxe.org>
Wed, 5 Nov 2025 14:19:56 +0000 (14:19 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 5 Nov 2025 16:55:20 +0000 (16:55 +0000)
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>
src/config/defaults/efi.h
src/config/defaults/pcbios.h
src/config/serial.h

index ed7d37f262953713cdf596352f92e7cca39cb966..4c9ba9d2a597d3da253399b6e0e0a1b1c90a07d1 100644 (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 */
index 9be9ff834e7e3dce3f82036a272ce2b4eaa7fff4..3f24f1b7b6da807a5b5c080b16a39759b9ed4778 100644 (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
index 6dc051df42ce01c55c8469e52914dd1951b80981..a372963aa7e242b72d4d29f782a109dce0df1c65 100644 (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