]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: cmdline parsing, framebuffer fallback, UART serial input for TTY
authorTulio A M Mendes <[email protected]>
Sat, 14 Feb 2026 05:24:24 +0000 (02:24 -0300)
committerTulio A M Mendes <[email protected]>
Sat, 14 Feb 2026 05:24:24 +0000 (02:24 -0300)
commit4862eea9361f1c5755e93bcbe5b3dc5baa132b0e
tree8efd30deb5a88e869e8383ae9ee0915231c9c20b
parentc3dbe0e902f5afc1cf4f607f8260882a0279217b
fix: cmdline parsing, framebuffer fallback, UART serial input for TTY

1. cmdline: use separate tok_copy buffer for tokenization so token
   pointers are properly null-terminated; raw_copy stays pristine
   for /proc/cmdline.

2. framebuffer: remove Multiboot2 framebuffer request tag from boot.S
   so GRUB keeps EGA text mode (no pixel drawing routines yet).

3. serial input: enable UART RX interrupt (IER bit 0), route IRQ 4
   (COM1) via IOAPIC to IDT vector 36, wire hal_uart_set_rx_callback
   to tty_input_char in tty_init(). /bin/sh now accepts serial input.

4. grub.cfg: add shell entry (init=/bin/sh), keep ring3 test with
   console=serial for smoke test performance.

Tests: 20/20 smoke, cppcheck clean.
include/hal/uart.h
iso/boot/grub/grub.cfg
src/arch/x86/arch_platform.c
src/arch/x86/boot.S
src/hal/arm/uart.c
src/hal/mips/uart.c
src/hal/riscv/uart.c
src/hal/x86/uart.c
src/kernel/cmdline.c
src/kernel/tty.c