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/VFS - Kernel-side implementation of marshalled FDs
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
syscalls.c
diff --git
a/KernelLand/Kernel/syscalls.c
b/KernelLand/Kernel/syscalls.c
index
ccbe677
..
75ed874
100644
(file)
--- a/
KernelLand/Kernel/syscalls.c
+++ b/
KernelLand/Kernel/syscalls.c
@@
-403,7
+403,19
@@
void SyscallHandler(tSyscallRegs *Regs)
case SYS_UNLINK:
Log_Error("Syscalls", "TODO: Impliment SYS_UNLINK");
case SYS_UNLINK:
Log_Error("Syscalls", "TODO: Impliment SYS_UNLINK");
- // Fall
+ break;
+
+ case SYS_MARSHALFD:
+ ret = VFS_MarshalHandle(Regs->Arg1);
+ break;
+ case SYS_UNMARSHALFD:
+ #if BITS == 64
+ ret = VFS_UnmarshalHandle( Regs->Arg1 );
+ #else
+ ret = VFS_UnmarshalHandle( ARG64(1,2) );
+ #endif
+ break;
+
// -- Debug
//#if DEBUG_BUILD
case SYS_DEBUG:
// -- Debug
//#if DEBUG_BUILD
case SYS_DEBUG:
UCC
git Repository :: git.ucc.asn.au