aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/syscall.c
blob: f6761ac6d0f37db1307279736713a5575b204a8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <syscall.h>

/**
 * DEFINITIONS
 */
DEFN_SYSCALL0(halt, 0);

DEFN_SYSCALL1(exit, 1, u32);

DEFN_SYSCALL0(fork, 2);

DEFN_SYSCALL4(read, 3, char *, u32, u32, char *);

DEFN_SYSCALL4(write, 4, char *, u32, u32, char *);

DEFN_SYSCALL1(exec, 5, char *);

DEFN_SYSCALL0(get_pid, 6);

DEFN_SYSCALL1(malloc, 7, u32);

DEFN_SYSCALL1(free, 8, u32);