]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: init PID 1, ls -l permissions/size, doom dynamic linking
authorTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 07:01:05 +0000 (04:01 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 07:01:05 +0000 (04:01 -0300)
commitf34b43b3596a9b54eb93ccd6aae610ce375dd117
tree499cdef014750b6dc45748b309fbca0d9091cb1a
parent5e0e159916de9ecb99cc114f7f08cc9f24c3a777
fix: init PID 1, ls -l permissions/size, doom dynamic linking

1. Init process now gets PID 1 (like Linux): next_pid starts at 2,
   sched_assign_pid1() explicitly assigns PID 1 to the init process
   after it loads. Kernel threads and AP idles get PIDs 2+.

2. ls -l now shows permissions, nlink, size via stat() on each entry
   instead of just the type character.

3. doom.elf Makefile switched from static linking (libulibc.a) to
   dynamic linking (libc.so via ld.so) like all other user commands.
src/arch/x86/arch_platform.c
src/kernel/scheduler.c
user/doom/Makefile
user/ls.c