]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: /dev/hdX block device nodes and /proc/dmesg
authorTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 08:01:55 +0000 (05:01 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 08:01:55 +0000 (05:01 -0300)
commita4a4bc79d194a9a2c4fa4c7e7d3ac928500fae1a
tree1120cfb836593243d585042ef76a0a4240c7fba1
parent2a3521647937ff6b7fff7413efd4449f9ee45329
feat: /dev/hdX block device nodes and /proc/dmesg

1. ATA block devices in devfs:
   Detected ATA drives (hda, hdb, hdc, hdd) are now registered as
   block device nodes in /dev via ata_register_devfs(). Each node
   supports read/write at byte offsets (with sector-aligned I/O
   internally). Previously, drives were detected but invisible
   in /dev, so 'ls /dev' showed no disk devices and mount had to
   use ata_name_to_drive() internally.

2. /proc/dmesg:
   Added /proc/dmesg to procfs that reads the kprintf ring buffer
   via klog_read(). Uses heap allocation (16KB) to avoid kernel
   stack overflow. The 'dmesg' command now works correctly.
src/drivers/ata_pio.c
src/hal/x86/ata_pio.c
src/kernel/init.c
src/kernel/procfs.c