mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 18:44:01 +00:00
1.5 KiB
1.5 KiB
CLeonOS Stage11
Stage Goal
- Build Stage11 shell command framework around syscall ABI (
help/ls/cat/run). - Extend INT80 syscall table with filesystem query/read operations.
- Add kernel
execpath framework for ELF-by-path request validation. - Add kernel-side syscall probe flow to verify command-path ABI during boot.
Acceptance Criteria
- Kernel boots and prints
CLEONOS STAGE11 START. - Userland init logs
SHELL COMMAND ABI READY. - Exec framework logs
PATH EXEC FRAMEWORK ONLINE. - After interrupt/syscall online, Stage11 probe logs include:
SHELL ROOT_CHILDRENSHELL ROOT_ENTRY0SHELL README PREVIEWEXEC RUN /SYSTEM/ELFRUNNER.ELF OKEXEC REQUESTSandEXEC SUCCESS
- System remains stable in idle loop.
Build Targets
make setupmake userappsmake isomake runmake debug
QEMU Command
qemu-system-x86_64 -M q35 -m 1024M -cdrom build/CLeonOS-x86_64.iso -serial stdio
Common Bugs and Debugging
undefined referencefor exec APIs:- Ensure
clks/kernel/exec.cis listed inC_SOURCES.
- Ensure
- Stage11 syscall logs missing:
- Verify
clks_stage11_syscall_probe()is called afterclks_interrupts_init().
- Verify
EXEC ELF INVALIDon run path:- Check
/system/*.elfare valid ELF64 images in ramdisk.
- Check
ls/catshell syscalls return empty:- Confirm syscall IDs in
clks/include/clks/syscall.handcleonos/c/include/cleonos_syscall.hare identical.
- Confirm syscall IDs in
- Shell app build fails with warnings:
- Keep helper functions used and avoid implicit type conversions under
-Werror.
- Keep helper functions used and avoid implicit type conversions under