git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support to multi-threading and pthread interface (POSIX.1-2008) (#23)
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
syscall.h
diff --git
a/lunaix-os/includes/lunaix/syscall.h
b/lunaix-os/includes/lunaix/syscall.h
index 4a101fa73c280f31c47a369149b927c4b092fb4e..1b9778f79b2a783e09b2509ab908a9a2bdbb637b 100644
(file)
--- a/
lunaix-os/includes/lunaix/syscall.h
+++ b/
lunaix-os/includes/lunaix/syscall.h
@@
-1,16
+1,12
@@
#ifndef __LUNAIX_SYSCALL_H
#define __LUNAIX_SYSCALL_H
#ifndef __LUNAIX_SYSCALL_H
#define __LUNAIX_SYSCALL_H
-#include <arch/x86/vectors.h>
#include <usr/lunaix/syscallid.h>
#ifndef __ASM__
#define SYSCALL_ESTATUS(errno) -((errno) != 0)
#include <usr/lunaix/syscallid.h>
#ifndef __ASM__
#define SYSCALL_ESTATUS(errno) -((errno) != 0)
-void
-syscall_install();
-
#define asmlinkage __attribute__((regparm(0)))
#define __PARAM_MAP1(t1, p1) t1 p1
#define asmlinkage __attribute__((regparm(0)))
#define __PARAM_MAP1(t1, p1) t1 p1
@@
-40,9
+36,5
@@
syscall_install();
asmlinkage rettype __lxsys_##name( \
__PARAM_MAP5(t1, p1, t2, p2, t3, p3, t4, p4, t5, p5))
asmlinkage rettype __lxsys_##name( \
__PARAM_MAP5(t1, p1, t2, p2, t3, p3, t4, p4, t5, p5))
-#define __SYSCALL_INTERRUPTIBLE(code) \
- asm("sti"); \
- { code }; \
- asm("cli");
#endif
#endif /* __LUNAIX_SYSCALL_H */
#endif
#endif /* __LUNAIX_SYSCALL_H */