Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax Support LWP_PC



details:   https://anonhg.NetBSD.org/src/rev/04d07354a7b7
branches:  trunk
changeset: 764238:04d07354a7b7
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Apr 14 08:17:27 2011 +0000

description:
Support LWP_PC

diffstat:

 sys/arch/vax/include/cpu.h    |   5 ++++-
 sys/arch/vax/vax/vm_machdep.c |  11 +++++++++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diffs (58 lines):

diff -r 242585008ffc -r 04d07354a7b7 sys/arch/vax/include/cpu.h
--- a/sys/arch/vax/include/cpu.h        Thu Apr 14 08:05:00 2011 +0000
+++ b/sys/arch/vax/include/cpu.h        Thu Apr 14 08:17:27 2011 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: cpu.h,v 1.91 2010/12/14 23:27:37 matt Exp $      */
+/*      $NetBSD: cpu.h,v 1.92 2011/04/14 08:17:27 matt Exp $      */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden
@@ -202,6 +202,8 @@
  */
 #define        IOSPSZ  ((64*1024) / VAX_NBPG)  /* 64k == 128 pages */
 
+#define        LWP_PC(l)       cpu_lwp_pc(l)
+
 struct device;
 struct buf;
 struct pte;
@@ -215,6 +217,7 @@
 void   cpu_send_ipi(int, int);
 void   cpu_handle_ipi(void);
 #endif
+vaddr_t        cpu_lwp_pc(struct lwp *);
 int    badaddr(volatile void *, int);
 void   dumpconf(void);
 void   dumpsys(void);
diff -r 242585008ffc -r 04d07354a7b7 sys/arch/vax/vax/vm_machdep.c
--- a/sys/arch/vax/vax/vm_machdep.c     Thu Apr 14 08:05:00 2011 +0000
+++ b/sys/arch/vax/vax/vm_machdep.c     Thu Apr 14 08:17:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.114 2011/02/10 14:46:48 pooka Exp $        */
+/*     $NetBSD: vm_machdep.c,v 1.115 2011/04/14 08:17:27 matt Exp $         */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.114 2011/02/10 14:46:48 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.115 2011/04/14 08:17:27 matt Exp $");
 
 #include "opt_execfmt.h"
 #include "opt_compat_ultrix.h"
@@ -173,6 +173,13 @@
        tf->psl = PSL_U|PSL_PREVU;
 }
 
+vaddr_t
+cpu_lwp_pc(struct lwp *l)
+{
+       struct pcb * const pcb = lwp_getpcb(l);
+       return pcb->PC;
+}
+
 #if KERN_SA > 0
 void
 cpu_setfunc(struct lwp *l, void (*func)(void *), void *arg)



Home | Main Index | Thread Index | Old Index