Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode Revert
details: https://anonhg.NetBSD.org/src/rev/ec6835da83ab
branches: trunk
changeset: 769186:ec6835da83ab
user: reinoud <reinoud%NetBSD.org@localhost>
date: Fri Sep 02 16:09:01 2011 +0000
description:
Revert
diffstat:
sys/arch/usermode/include/pcb.h | 10 ++++------
sys/arch/usermode/include/thunk.h | 4 ++--
sys/arch/usermode/usermode/thunk.c | 8 ++++----
3 files changed, 10 insertions(+), 12 deletions(-)
diffs (78 lines):
diff -r d8cb3c8ac48b -r ec6835da83ab sys/arch/usermode/include/pcb.h
--- a/sys/arch/usermode/include/pcb.h Fri Sep 02 14:56:48 2011 +0000
+++ b/sys/arch/usermode/include/pcb.h Fri Sep 02 16:09:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcb.h,v 1.7 2011/09/02 14:56:48 reinoud Exp $ */
+/* $NetBSD: pcb.h,v 1.8 2011/09/02 16:09:01 reinoud Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -37,17 +37,15 @@
* XXX move to frame.h?
*/
-/* XXX NOT USED YET */
typedef struct trapframe {
-// int (*tf_syscall)(lwp_t *, struct trapframe *);
-// int tf_reason; /* XXX unused */
-// uintptr_t tf_io[8]; /* to transport info */
+ int (*tf_syscall)(lwp_t *, struct trapframe *);
+ int tf_reason; /* XXX unused */
+ uintptr_t tf_io[8]; /* to transport info */
} trapframe_t;
struct pcb {
ucontext_t pcb_ucp; /* lwp switchframe */
- ucontext_t pcb_syscall_ucp; /* syscall switchframe */
ucontext_t pcb_userland_ucp; /* userland switchframe */
bool pcb_needfree;
struct trapframe pcb_tf;
diff -r d8cb3c8ac48b -r ec6835da83ab sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Fri Sep 02 14:56:48 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Fri Sep 02 16:09:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.22 2011/09/02 14:55:22 reinoud Exp $ */
+/* $NetBSD: thunk.h,v 1.23 2011/09/02 16:09:01 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_1(ucontext_t *, void (*)(void), void *);
+void thunk_makecontext_trapframe2go(ucontext_t *, void *func, void *trapframe);
int thunk_swapcontext(ucontext_t *, ucontext_t *);
int thunk_tcgetattr(int, struct thunk_termios *);
diff -r d8cb3c8ac48b -r ec6835da83ab sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Fri Sep 02 14:56:48 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Fri Sep 02 16:09:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.25 2011/09/02 14:55:22 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.26 2011/09/02 16:09:01 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.25 2011/09/02 14:55:22 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.26 2011/09/02 16:09:01 reinoud Exp $");
#include <sys/types.h>
#include <sys/ansi.h>
@@ -205,9 +205,9 @@
}
void
-thunk_makecontext_1(ucontext_t *ucp, void (*func)(void), void *arg)
+thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
{
- makecontext(ucp, func, 1, arg);
+ makecontext(ucp, func, 1, trapframe);
}
int
Home |
Main Index |
Thread Index |
Old Index