From 3e34fed0d4516d1d00f9d5bf590cac0c021fddd1 Mon Sep 17 00:00:00 2001 From: reinoud Date: Mon, 29 Aug 2011 12:37:20 +0000 Subject: [PATCH] Update syscall prototype --- sys/arch/usermode/usermode/syscall.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sys/arch/usermode/usermode/syscall.c b/sys/arch/usermode/usermode/syscall.c index 0cff03b9ad00..ad13526fc25b 100644 --- a/sys/arch/usermode/usermode/syscall.c +++ b/sys/arch/usermode/usermode/syscall.c @@ -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 @@ -27,7 +27,7 @@ */ #include -__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 #include @@ -41,7 +41,7 @@ __KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.4 2011/08/28 19:39:05 reinoud Exp $"); #include #include -void syscall(void); +int syscall(lwp_t *l, struct trapframe *tr); void child_return(void *arg) @@ -58,8 +58,10 @@ printf("child returned! arg %p\n", arg); 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; }