add multiple kernel shell commands #6
Loading…
Reference in a new issue
No description provided.
Delete branch "3-system-command"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
✨ (init.rs): update shell prompt from "Type something:" to "KFS Shell:" for clarity
✨ (interrupts.rs): refactor keyboard handler to support new shell commands: echo, exit, reboot, debug
✨ (main.rs): reorganize module imports to improve code structure and enable new functionality
✨ (tools.rs): split tools into modular components (echo, reboot, shutdown, stack_debug)
✨ (tools/echo.rs): add echo command to print text input
✨ (tools/reboot.rs): implement QEMU reboot functionality via port 0x64
✨ (tools/shutdown.rs): implement QEMU shutdown functionality via port 0x604
✨ (tools/stack_debug.rs): add comprehensive stack debugging tool with backtrace and GDT inspection
The kernel now includes a functional shell with multiple built-in commands. The prompt is more descriptive, and users can execute commands like
echo,exit,reboot, anddebugto inspect system state. The modular tool design improves maintainability and enables future expansion.Closes #3
assigned to @vicode
added 1 commit
dec3538d- 🐛 (stack_debug.rs): fix typo in help message for syscall_stack descriptionCompare with previous version
added 1 commit
c5b5b00f- chore(vga.rs): remove unused x86_64::structures::idt::InterruptDescriptorTable importCompare with previous version
mentioned in commit
bb6c2570b2