kaguya e6e8b1209b sys: Refactor GDT initialization, enhance syscall handling, and improve user mode entry
Finally we got usermode working again, It took awhile but we got it done. A few things we did in this commit:

- Simplified GDT entry initialization in gdt.c for kernel and user segments.
- Fixed TSS structure for task switching.
- Implemented cr2 handling in a page fault.
- Enhanced user stack setup in usermode.c to return the correct RSP.
- Improved syscall implementation in syscall.c, including new syscall numbers.
- Updated syscall entry to correctly handle context switching and argument passing.
- Refactored init.c to demonstrate file operations using syscalls.
- Added new syscalls for file operations in syscalls.h.
- Modified VFS to handle leading slashes in paths correctly.

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-04-26 02:06:28 -04:00
2026-04-15 13:42:16 -04:00
2026-04-14 22:52:24 -04:00
2026-04-14 22:52:24 -04:00

KirkOS

i suppose

how to build

uhh

mkdir -p build && cd build

cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo

cd ..

cmake --build build --target run
S
Description
No description provided
Readme 63 MiB
Languages
C 69.7%
C++ 24.2%
Python 1.7%
Meson 1.7%
ASL 1.4%
Other 1.2%