Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode Add thunk_makecontext_trapframe2go()
details: https://anonhg.NetBSD.org/src/rev/a1bd85f20fe8
branches: trunk
changeset: 768897:a1bd85f20fe8
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sun Aug 28 19:37:15 2011 +0000
description:
Add thunk_makecontext_trapframe2go()
diffstat:
sys/arch/usermode/include/thunk.h | 3 ++-
sys/arch/usermode/usermode/thunk.c | 10 ++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diffs (48 lines):
diff -r 078b4a2e3d29 -r a1bd85f20fe8 sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Sun Aug 28 19:09:34 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Sun Aug 28 19:37:15 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.18 2011/08/27 21:14:15 reinoud Exp $ */
+/* $NetBSD: thunk.h,v 1.19 2011/08/28 19:37:15 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -60,6 +60,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);
int thunk_swapcontext(ucontext_t *, ucontext_t *);
int thunk_getchar(void);
diff -r 078b4a2e3d29 -r a1bd85f20fe8 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Sun Aug 28 19:09:34 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Sun Aug 28 19:37:15 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.20 2011/08/27 21:14:15 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.21 2011/08/28 19:37:16 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.20 2011/08/27 21:14:15 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.21 2011/08/28 19:37:16 reinoud Exp $");
#include <sys/types.h>
#include <sys/ansi.h>
@@ -173,6 +173,12 @@
makecontext(ucp, func, argc, arg1, arg2);
}
+void
+thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
+{
+ makecontext(ucp, func, 1, trapframe);
+}
+
int
thunk_swapcontext(ucontext_t *oucp, ucontext_t *ucp)
{
Home |
Main Index |
Thread Index |
Old Index