You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
401 B
18 lines
401 B
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#define SYSCALL_READ 0
|
|
#define SYSCALL_WRITE 1
|
|
#define SYSCALL_GETCWD 2
|
|
#define SYSCALL_CHDIR 3
|
|
#define SYSCALL_SPAWN 4
|
|
#define SYSCALL_WAIT 5
|
|
#define SYSCALL_OPEN 6
|
|
#define SYSCALL_CLOSE 7
|
|
#define SYSCALL_TRUNCATE 8
|
|
#define SYSCALL_EXIT 60
|
|
|
|
void syscall_init();
|
|
|
|
uint64_t syscall_dispatch(uint64_t func, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4);
|
|
|