]> 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)
commit12ca6440ef0f776f74e458e62f151a28de327842
treedcb72132055bc98a67d00002b941ef68f70f8a4e
parenta964ece8963eb0f419463f0dc53628665790baa9
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