Module Name:    src
Committed By:   matt
Date:           Tue Mar 31 01:12:30 UTC 2015

Modified Files:
        src/sys/arch/riscv/include: proc.h

Log Message:
Add a md_tp member to mdlwp so that the exception handler can temporarily
store the user's thread pointer before saving it in the trapframe.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/include/proc.h

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/riscv/include/proc.h
diff -u src/sys/arch/riscv/include/proc.h:1.1 src/sys/arch/riscv/include/proc.h:1.2
--- src/sys/arch/riscv/include/proc.h:1.1	Fri Sep 19 17:36:26 2014
+++ src/sys/arch/riscv/include/proc.h	Tue Mar 31 01:12:29 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: proc.h,v 1.1 2014/09/19 17:36:26 matt Exp $	*/
+/*	$NetBSD: proc.h,v 1.2 2015/03/31 01:12:29 matt Exp $	*/
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -46,6 +46,7 @@ struct mdlwp {
 	struct trapframe *md_utf;	/* trapframe from userspace */
 	struct trapframe *md_ktf;	/* trapframe from userspace */
 	struct faultbuf *md_onfault;	/* registers to store on fault */
+	register_t md_tp;		/* for locore.S */
 	vaddr_t	md_ss_addr;		/* single step address for ptrace */
 	int	md_ss_instr;		/* single step instruction for ptrace */
 	volatile int md_astpending;	/* AST pending on return to userland */

Reply via email to