C userspace programs

This commit is contained in:
2025-09-04 23:20:30 +02:00
parent afa4d383e0
commit 90266f044b
51 changed files with 259 additions and 174 deletions

14
ulib/syscall/syscall.h Normal file
View File

@ -0,0 +1,14 @@
#ifndef ULIB_SYSCALL_SYSCALL_H_
#define ULIB_SYSCALL_SYSCALL_H_
#define SYS_DEBUGPRINT 1
#define SYS_QUITPROC 2
#if !defined(__ASSEMBLER__)
uint64_t syscall(uint64_t num, uint64_t arg1, uint64_t arg2,
uint64_t arg3, uint64_t arg4, uint64_t arg5, uint64_t arg6);
#endif // ! __ASSEMBLER__
#endif // ULIB_SYSCALL_SYSCALL_H_