Module Name:    src
Committed By:   matt
Date:           Thu Apr 14 08:17:28 UTC 2011

Modified Files:
        src/sys/arch/vax/include: cpu.h
        src/sys/arch/vax/vax: vm_machdep.c

Log Message:
Support LWP_PC


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/arch/vax/include/cpu.h
cvs rdiff -u -r1.114 -r1.115 src/sys/arch/vax/vax/vm_machdep.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/vax/include/cpu.h
diff -u src/sys/arch/vax/include/cpu.h:1.91 src/sys/arch/vax/include/cpu.h:1.92
--- src/sys/arch/vax/include/cpu.h:1.91	Tue Dec 14 23:27:37 2010
+++ src/sys/arch/vax/include/cpu.h	Thu Apr 14 08:17:27 2011
@@ -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);

Index: src/sys/arch/vax/vax/vm_machdep.c
diff -u src/sys/arch/vax/vax/vm_machdep.c:1.114 src/sys/arch/vax/vax/vm_machdep.c:1.115
--- src/sys/arch/vax/vax/vm_machdep.c:1.114	Thu Feb 10 14:46:48 2011
+++ src/sys/arch/vax/vax/vm_machdep.c	Thu Apr 14 08:17:27 2011
@@ -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)

Reply via email to