Module Name: src Committed By: reinoud Date: Mon Aug 29 12:37:20 UTC 2011
Modified Files: src/sys/arch/usermode/usermode: syscall.c Log Message: Update syscall prototype To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/usermode/syscall.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/usermode/usermode/syscall.c diff -u src/sys/arch/usermode/usermode/syscall.c:1.4 src/sys/arch/usermode/usermode/syscall.c:1.5 --- src/sys/arch/usermode/usermode/syscall.c:1.4 Sun Aug 28 19:39:05 2011 +++ src/sys/arch/usermode/usermode/syscall.c Mon Aug 29 12:37:20 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: syscall.c,v 1.4 2011/08/28 19:39:05 reinoud Exp $ */ +/* $NetBSD: syscall.c,v 1.5 2011/08/29 12:37:20 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill <jmcne...@invisible.ca> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.4 2011/08/28 19:39:05 reinoud Exp $"); +__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.5 2011/08/29 12:37:20 reinoud Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -41,7 +41,7 @@ #include <machine/pcb.h> #include <machine/thunk.h> -void syscall(void); +int syscall(lwp_t *l, struct trapframe *tr); void child_return(void *arg) @@ -58,8 +58,10 @@ ktrsysret(SYS_fork, 0, 0); } -void -syscall(void) + +int +syscall(lwp_t *l, struct trapframe *tr) { -printf("syscall called !\n"); +printf("syscall called for lwp %p, trapframe %p!\n", l, tr); + return ENOENT; }