Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/include Update pcb and trapframe



details:   https://anonhg.NetBSD.org/src/rev/4fd0ae26ad4c
branches:  trunk
changeset: 768934:4fd0ae26ad4c
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Aug 29 12:37:53 2011 +0000

description:
Update pcb and trapframe

diffstat:

 sys/arch/usermode/include/pcb.h |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 5d938eac95c1 -r 4fd0ae26ad4c sys/arch/usermode/include/pcb.h
--- a/sys/arch/usermode/include/pcb.h   Mon Aug 29 12:37:52 2011 +0000
+++ b/sys/arch/usermode/include/pcb.h   Mon Aug 29 12:37:53 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcb.h,v 1.5 2011/08/28 19:40:26 reinoud Exp $ */
+/* $NetBSD: pcb.h,v 1.6 2011/08/29 12:37:53 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -38,16 +38,17 @@
  */
 
 typedef struct trapframe {
-       int             (*tf_syscall)(void *);  /* address to call for syscalls */
+       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;
+       ucontext_t       pcb_ucp;               /* lwp switchframe */
+       ucontext_t       pcb_userland_ucp;      /* userland switchframe */
        bool             pcb_needfree;
-       struct trapframe pcb_tf;        /* XXX */
+       struct trapframe pcb_tf;
        void *           pcb_onfault;   /* on fault handler */
 };
 



Home | Main Index | Thread Index | Old Index