Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/usermode Update syscall prototype



details:   https://anonhg.NetBSD.org/src/rev/1ba096e92eec
branches:  trunk
changeset: 768932:1ba096e92eec
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Aug 29 12:37:20 2011 +0000

description:
Update syscall prototype

diffstat:

 sys/arch/usermode/usermode/syscall.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 0a5d51cb9009 -r 1ba096e92eec sys/arch/usermode/usermode/syscall.c
--- a/sys/arch/usermode/usermode/syscall.c      Mon Aug 29 12:32:54 2011 +0000
+++ b/sys/arch/usermode/usermode/syscall.c      Mon Aug 29 12:37:20 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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;
 }



Home | Main Index | Thread Index | Old Index