30 lines
382 B
ArmAsm
30 lines
382 B
ArmAsm
#include "syscall.h"
|
|
#include "traps.h"
|
|
|
|
#define STUB(name) \
|
|
.globl name; \
|
|
name: \
|
|
movl $SYS_ ## name, %eax; \
|
|
int $T_SYSCALL; \
|
|
ret
|
|
|
|
STUB(fork)
|
|
STUB(exit)
|
|
STUB(wait)
|
|
STUB(pipe)
|
|
STUB(read)
|
|
STUB(write)
|
|
STUB(close)
|
|
STUB(kill)
|
|
STUB(exec)
|
|
STUB(open)
|
|
STUB(mknod)
|
|
STUB(unlink)
|
|
STUB(fstat)
|
|
STUB(link)
|
|
STUB(mkdir)
|
|
STUB(chdir)
|
|
STUB(dup)
|
|
STUB(getpid)
|
|
STUB(sbrk)
|
|
STUB(sleep)
|