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
AcessKernel - cleaning up debug messages
[tpg/acess2.git]
/
AcessNative
/
acesskernel_src
/
syscalls.c
diff --git
a/AcessNative/acesskernel_src/syscalls.c
b/AcessNative/acesskernel_src/syscalls.c
index
b945df8
..
6919239
100644
(file)
--- a/
AcessNative/acesskernel_src/syscalls.c
+++ b/
AcessNative/acesskernel_src/syscalls.c
@@
-4,10
+4,13
@@
*
* Syscall Distribution
*/
*
* Syscall Distribution
*/
-#define DEBUG
1
+#define DEBUG
0
#include <acess.h>
#include <threads.h>
#include <events.h>
#include <acess.h>
#include <threads.h>
#include <events.h>
+#if DEBUG == 0
+# define DONT_INCLUDE_SYSCALL_NAMES
+#endif
#include "../syscalls.h"
// === IMPORTS ===
#include "../syscalls.h"
// === IMPORTS ===
@@
-137,7
+140,7
@@
SYSCALL2(Syscall_ReadDir, "id", int, char *,
return -1;
return VFS_ReadDir(a0, a1);
);
return -1;
return VFS_ReadDir(a0, a1);
);
-SYSCALL6(Syscall_select, "iddddi", int, fd_set *, fd_set *, fd_set *, t
ime_t
*, unsigned int,
+SYSCALL6(Syscall_select, "iddddi", int, fd_set *, fd_set *, fd_set *, t
Time
*, unsigned int,
return VFS_Select(a0, a1, a2, a3, a4, a5, 0);
);
SYSCALL3(Syscall_OpenChild, "isi", int, const char *, int,
return VFS_Select(a0, a1, a2, a3, a4, a5, 0);
);
SYSCALL3(Syscall_OpenChild, "isi", int, const char *, int,
@@
-203,11
+206,11
@@
SYSCALL2(Syscall_GetMessage, "dd", uint32_t *, void *,
Uint tmp;
int rv;
if( a0 ) {
Uint tmp;
int rv;
if( a0 ) {
- rv = Proc_GetMessage(&tmp, a1);
+ rv = Proc_GetMessage(&tmp,
Sizes[1],
a1);
*a0 = tmp;
}
else
*a0 = tmp;
}
else
- rv = Proc_GetMessage(NULL, a1);
+ rv = Proc_GetMessage(NULL,
Sizes[1],
a1);
return rv;
);
return rv;
);
@@
-384,11
+387,12
@@
tRequestHeader *SyscallRecieve(tRequestHeader *Request, int *ReturnLength)
}
// Allocate the return
}
// Allocate the return
- ret = malloc(sizeof(tRequestHeader) + retValueCount * sizeof(tRequestValue)
-
+ retDataL
en);
+ size_t msglen = sizeof(tRequestHeader) + retValueCount * sizeof(tRequestValue) + retDataLen;
+
ret = malloc(msgl
en);
ret->ClientID = Request->ClientID;
ret->CallID = Request->CallID;
ret->NParams = retValueCount;
ret->ClientID = Request->ClientID;
ret->CallID = Request->CallID;
ret->NParams = retValueCount;
+ ret->MessageLength = msglen;
inData = (char*)&ret->Params[ ret->NParams ];
// Static Uint64 return value
inData = (char*)&ret->Params[ ret->NParams ];
// Static Uint64 return value
@@
-398,7
+402,7
@@
tRequestHeader *SyscallRecieve(tRequestHeader *Request, int *ReturnLength)
*(Uint64*)inData = retVal;
inData += sizeof(Uint64);
*(Uint64*)inData = retVal;
inData += sizeof(Uint64);
- Log_Debug("Syscalls", "Return 0x%llx", retVal);
+
//
Log_Debug("Syscalls", "Return 0x%llx", retVal);
retValueCount = 1;
for( i = 0; i < Request->NParams; i ++ )
retValueCount = 1;
for( i = 0; i < Request->NParams; i ++ )
UCC
git Repository :: git.ucc.asn.au