Skip to content

Feat/syscall interface#8

Merged
traitimtrongvag merged 6 commits intomainfrom
feat/syscall-interface
Feb 13, 2026
Merged

Feat/syscall interface#8
traitimtrongvag merged 6 commits intomainfrom
feat/syscall-interface

Conversation

@traitimtrongvag
Copy link
Copy Markdown
Owner

No description provided.

- Define syscall interrupt vector 0x80
- Add 10 system call numbers
- Declare syscall handler type
- Setup interface for dispatcher
- Add int 0x80 handler entry point
- Save/restore all registers and segments
- Extract syscall args from registers
- Call C dispatcher and return result
- Include kernel-mode syscall stub
- Create syscall table with 10 handlers
- Implement sys_exit, sys_write, sys_getpid
- Add stub implementations for remaining calls
- Register syscall handler in IDT
- Support user-mode syscall invocation
- Inline assembly wrappers for int 0x80
- Support 0-3 argument syscalls
- Provide convenient macros for all syscalls
- Enable easy syscall invocation from C
- Test getpid, write, open, close, gettime
- Validate syscall return values
- Test invalid syscall handling
- Demonstrate syscall functionality
- Complete syscall API reference
- Document calling convention and ABI
- Explain implementation details
- Provide usage examples
- List future enhancements
@traitimtrongvag traitimtrongvag merged commit 25ea454 into main Feb 13, 2026
1 check passed
@traitimtrongvag traitimtrongvag deleted the feat/syscall-interface branch February 27, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant