git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/x86_64 - Fix task switching
[tpg/acess2.git]
/
AcessNative
/
syscalls.h
diff --git
a/AcessNative/syscalls.h
b/AcessNative/syscalls.h
index
b9661bc
..
a9768c4
100644
(file)
--- a/
AcessNative/syscalls.h
+++ b/
AcessNative/syscalls.h
@@
-5,6
+5,14
@@
#define SERVER_PORT 0xACE
#define SERVER_PORT 0xACE
+#define SYSCALL_TRACE 1
+
+#if SYSCALL_TRACE
+#define SYSTRACE(str, x...) do{ if(gbSyscallDebugEnabled)Debug(str, x); }while(0)
+#else
+#define SYSTRACE(...) do{}while(0)
+#endif
+
/*
* Request format
*
/*
* Request format
*
@@
-27,13
+35,13
@@
typedef struct sRequestValue {
} tRequestValue;
typedef struct sRequestHeader {
} tRequestValue;
typedef struct sRequestHeader {
- uint16_t ClientID;
- uint16_t CallID; //!< \see eSyscalls
+ uint32_t ClientID;
uint32_t MessageLength;
uint32_t MessageLength;
+ uint16_t CallID; //!< \see eSyscalls
uint16_t NParams;
tRequestValue Params[];
uint16_t NParams;
tRequestValue Params[];
-} tRequestHeader;
+}
__attribute__((packed))
tRequestHeader;
enum eSyscalls {
enum eSyscalls {
UCC
git Repository :: git.ucc.asn.au