os_kernel_lab/labcodes/lab7/user/libs/syscall.h

20 lines
423 B
C
Raw Normal View History

2012-08-22 12:32:13 +08:00
#ifndef __USER_LIBS_SYSCALL_H__
#define __USER_LIBS_SYSCALL_H__
int sys_exit(int error_code);
int sys_fork(void);
int sys_wait(int pid, int *store);
int sys_yield(void);
int sys_kill(int pid);
int sys_getpid(void);
int sys_putc(int c);
int sys_pgdir(void);
int sys_gettime(void);
2012-08-22 12:32:13 +08:00
/* FOR LAB6 ONLY */
void sys_lab6_set_priority(uint32_t priority);
int sys_sleep(unsigned int time);
#endif /* !__USER_LIBS_SYSCALL_H__ */