b548df152b
usertest.c tests pre-emption kill()
20 lines
263 B
ArmAsm
20 lines
263 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(cons_putc)
|
|
STUB(pipe)
|
|
STUB(read)
|
|
STUB(write)
|
|
STUB(close)
|
|
STUB(block)
|
|
STUB(kill)
|