From: John Hodge Date: Mon, 21 Sep 2009 10:35:32 +0000 (+0800) Subject: Added SYS_READ implementation X-Git-Tag: rel0.06~553 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=51825c4d4624dbb133a432ac0a27383a0b5be288;p=tpg%2Facess2.git Added SYS_READ implementation --- diff --git a/Kernel/syscalls.c b/Kernel/syscalls.c index 32cc45da..84c9a924 100644 --- a/Kernel/syscalls.c +++ b/Kernel/syscalls.c @@ -120,6 +120,14 @@ void SyscallHandler(tSyscallRegs *Regs) #endif break; + case SYS_READ: + #if BITS < 64 + VFS_Read( Regs->Arg1, Regs->Arg2|((Uint64)Regs->Arg3<<32), (void*)Regs->Arg4 ); + #else + VFS_Read( Regs->Arg1, Regs->Arg2, (void*)Regs->Arg3 ); + #endif + break; + // -- Debug case SYS_DEBUG: