From c7c497cd663596e1d833b935f565c91919dc70db Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 19 Apr 2026 19:34:49 +0100 Subject: [PATCH] x86_64: serial: write COM1 output to Bochs console --- arch/x86_64/serial.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86_64/serial.c b/arch/x86_64/serial.c index 04a45a6..c48f596 100644 --- a/arch/x86_64/serial.c +++ b/arch/x86_64/serial.c @@ -28,6 +28,10 @@ void serial_send_byte(int device, char out) outportb(device, out); + if (device == COM1) { + outportb(0xe9, out); + } + while (!transmit_empty(device)) { _count++; }