User/Kernel - ARMv7 fixes (relocation of .text)
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / arch / syscalls.s.h
1 #include "../../../../KernelLand/Kernel/include/syscalls.h"
2
3 // --- Process Control ---
4 SYSCALL1(_exit, SYS_EXIT)
5
6 SYSCALL2(clone, SYS_CLONE)
7 SYSCALL2(kill, SYS_KILL)
8 SYSCALL0(yield, SYS_YIELD)
9 SYSCALL0(sleep, SYS_SLEEP)
10 SYSCALL1(_SysWaitEvent, SYS_WAITEVENT)
11 SYSCALL2(waittid, SYS_WAITTID)
12
13 SYSCALL0(gettid, SYS_GETTID)
14 SYSCALL0(getpid, SYS_GETPID)
15 SYSCALL0(getuid, SYS_GETUID)
16 SYSCALL0(getgid, SYS_GETGID)
17
18 SYSCALL1(setuid, SYS_SETUID)
19 SYSCALL1(setgid, SYS_SETGID)
20
21 SYSCALL1(SysSetName, SYS_SETNAME)
22 SYSCALL2(SysGetName, SYS_GETNAME)
23 SYSCALL0(_SysTimestamp, SYS_GETTIME)
24
25 SYSCALL1(SysSetPri, SYS_SETPRI)
26
27 SYSCALL3(SysSendMessage, SYS_SENDMSG)
28 SYSCALL3(SysGetMessage, SYS_GETMSG)
29
30 SYSCALL5(_SysSpawn, SYS_SPAWN)
31 SYSCALL3(execve, SYS_EXECVE)
32 SYSCALL2(SysLoadBin, SYS_LOADBIN)
33 SYSCALL1(SysUnloadBin, SYS_UNLOADBIN)
34
35 SYSCALL1(_SysSetFaultHandler, SYS_SETFAULTHANDLER)
36
37 SYSCALL6(_SysDebug, 0x100)
38 SYSCALL1(_SysGetPhys, SYS_GETPHYS)      // uint64_t _SysGetPhys(uint addr)
39 SYSCALL1(_SysAllocate, SYS_ALLOCATE)    // uint64_t _SysAllocate(uint addr)
40 SYSCALL3(SysSetMemFlags, SYS_SETFLAGS)  // uint32_t SysSetMemFlags(uint addr, uint flags, uint mask)
41 // VFS System calls
42 SYSCALL2(open, SYS_OPEN)        // char*, int
43 SYSCALL3(reopen, SYS_REOPEN)    // int, char*, int
44 SYSCALL1(close, SYS_CLOSE)      // int
45 SYSCALL3(read, SYS_READ)        // int, uint, void*
46 SYSCALL3(write, SYS_WRITE)      // int, uint, void*
47 SYSCALL4(seek, SYS_SEEK)        // int, uint64_t, int
48 SYSCALL1(tell, SYS_TELL)        // int
49 SYSCALL3(finfo, SYS_FINFO)      // int, void*, int
50 SYSCALL2(SysReadDir, SYS_READDIR)       // int, char*
51 SYSCALL2(_SysGetACL,SYS_GETACL) // int, void*
52 SYSCALL1(chdir, SYS_CHDIR)      // char*
53 SYSCALL3(ioctl, SYS_IOCTL)      // int, int, void*
54 SYSCALL4(_SysMount, SYS_MOUNT)  // char*, char*, char*, char*
55 SYSCALL6(_SysSelect, SYS_SELECT)        // int, fd_set*, fd_set*, fd_set*, tTime*, uint32_t
56 SYSCALL1(unlink, SYS_UNLINK)    // const char*
57
58 SYSCALL3(_SysOpenChild, SYS_OPENCHILD)

UCC git Repository :: git.ucc.asn.au