Subversion Repositories HelenOS-historic

Rev

Rev 1109 | Rev 1176 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1109 Rev 1112
Line 29... Line 29...
29
#ifndef __SYSCALL_H__
29
#ifndef __SYSCALL_H__
30
#define __SYSCALL_H__
30
#define __SYSCALL_H__
31
 
31
 
32
typedef enum {
32
typedef enum {
33
    SYS_IO = 0,
33
    SYS_IO = 0,
-
 
34
    SYS_TLS_SET = 1, /* Hardcoded in AMD64,IA32 uspace - psthread.S */
34
    SYS_THREAD_CREATE,
35
    SYS_THREAD_CREATE,
35
    SYS_THREAD_EXIT,
36
    SYS_THREAD_EXIT,
36
    SYS_FUTEX_SLEEP,
37
    SYS_FUTEX_SLEEP,
37
    SYS_FUTEX_WAKEUP,
38
    SYS_FUTEX_WAKEUP,
38
    SYS_MMAP,
39
    SYS_MMAP,
Line 57... Line 58...
57
typedef __native (*syshandler_t)();
58
typedef __native (*syshandler_t)();
58
 
59
 
59
extern syshandler_t syscall_table[SYSCALL_END];
60
extern syshandler_t syscall_table[SYSCALL_END];
60
extern __native syscall_handler(__native a1, __native a2, __native a3,
61
extern __native syscall_handler(__native a1, __native a2, __native a3,
61
                __native a4, __native id);
62
                __native a4, __native id);
-
 
63
extern __native sys_tls_set(__native addr);
-
 
64
 
62
 
65
 
63
#endif
66
#endif
64
 
67
 
65
#endif
68
#endif