mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-05-15 09:01:27 -07:00
18 lines
270 B
C
18 lines
270 B
C
#ifndef SYSCALLS_H
|
|
#define SYSCALLS_H
|
|
|
|
// Syscall numbers
|
|
typedef enum {
|
|
SYSCALL_INIT = 0,
|
|
SYSCALL_SPAWN,
|
|
SYSCALL_YIELD
|
|
} syscall_code_t;
|
|
|
|
// Syscall dispatcher
|
|
void syscall_handler();
|
|
|
|
// Syscall interface
|
|
void syscall(int code, ...);
|
|
|
|
#endif // SYSCALLS_H
|