Module Name: src
Committed By: reinoud
Date: Fri Sep 2 14:55:22 UTC 2011
Modified Files:
src/sys/arch/usermode/include: thunk.h
src/sys/arch/usermode/usermode: thunk.c
Log Message:
-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.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/usermode/include/thunk.h
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/usermode/usermode/thunk.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/include/thunk.h
diff -u src/sys/arch/usermode/include/thunk.h:1.21 src/sys/arch/usermode/include/thunk.h:1.22
--- src/sys/arch/usermode/include/thunk.h:1.21 Thu Sep 1 18:19:00 2011
+++ src/sys/arch/usermode/include/thunk.h Fri Sep 2 14:55:22 2011
@@ -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 <[email protected]>
@@ -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 *);
Index: src/sys/arch/usermode/usermode/thunk.c
diff -u src/sys/arch/usermode/usermode/thunk.c:1.24 src/sys/arch/usermode/usermode/thunk.c:1.25
--- src/sys/arch/usermode/usermode/thunk.c:1.24 Thu Sep 1 18:19:00 2011
+++ src/sys/arch/usermode/usermode/thunk.c Fri Sep 2 14:55:22 2011
@@ -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 <[email protected]>
@@ -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