Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode -thunk_makecontext_trapframe2go(ucontext_t...



details:   https://anonhg.NetBSD.org/src/rev/13903f5fc73d
branches:  trunk
changeset: 769184:13903f5fc73d
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Fri Sep 02 14:55:22 2011 +0000

description:
-thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
+thunk_makecontext_1(ucontext_t *ucp, void (*func)(void), void *arg)

Create a more general prototype for makecontext() with one variable.

diffstat:

 sys/arch/usermode/include/thunk.h  |  4 ++--
 sys/arch/usermode/usermode/thunk.c |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r e0e578bcf282 -r 13903f5fc73d sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Fri Sep 02 14:54:41 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Fri Sep 02 14:55:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.21 2011/09/01 18:19:00 reinoud Exp $ */
+/* $NetBSD: thunk.h,v 1.22 2011/09/02 14:55:22 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -70,7 +70,7 @@
 int    thunk_getcontext(ucontext_t *);
 int    thunk_setcontext(const ucontext_t *);
 void   thunk_makecontext(ucontext_t *, void (*)(void), int, void (*)(void *), void *); 
-void   thunk_makecontext_trapframe2go(ucontext_t *, void *func, void *trapframe);
+void   thunk_makecontext_1(ucontext_t *, void (*)(void), void *); 
 int    thunk_swapcontext(ucontext_t *, ucontext_t *);
 
 int    thunk_tcgetattr(int, struct thunk_termios *);
diff -r e0e578bcf282 -r 13903f5fc73d sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c        Fri Sep 02 14:54:41 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c        Fri Sep 02 14:55:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.24 2011/09/01 18:19:00 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.25 2011/09/02 14:55:22 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: thunk.c,v 1.24 2011/09/01 18:19:00 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.25 2011/09/02 14:55:22 reinoud Exp $");
 
 #include <sys/types.h>
 #include <sys/ansi.h>
@@ -205,9 +205,9 @@
 }
 
 void
-thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
+thunk_makecontext_1(ucontext_t *ucp, void (*func)(void), void *arg)
 {
-       makecontext(ucp, func, 1, trapframe);
+       makecontext(ucp, func, 1, arg);
 }
 
 int



Home | Main Index | Thread Index | Old Index