Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/riscv/riscv Fix botch on putting user stack pointer...
details: https://anonhg.NetBSD.org/src/rev/d060fc14dcf2
branches: trunk
changeset: 337053:d060fc14dcf2
user: matt <matt%NetBSD.org@localhost>
date: Tue Mar 31 11:48:10 2015 +0000
description:
Fix botch on putting user stack pointer into trapframe.
diffstat:
sys/arch/riscv/riscv/locore.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 99cc2e3f56fd -r d060fc14dcf2 sys/arch/riscv/riscv/locore.S
--- a/sys/arch/riscv/riscv/locore.S Tue Mar 31 11:43:05 2015 +0000
+++ b/sys/arch/riscv/riscv/locore.S Tue Mar 31 11:48:10 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.3 2015/03/31 06:47:47 matt Exp $ */
+/* $NetBSD: locore.S,v 1.4 2015/03/31 11:48:10 matt Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -318,8 +318,8 @@
REG_S sp, L_MD_USP(tp) // save user stack pointer temporarily
PTR_L sp, L_MD_UTF(sp) // trapframe pointer loaded
REG_S t1, TF_T1(sp) // save t1
- REG_S t1, L_MD_USP(tp) // get user stack pointer
- REG_L t1, TF_SP(sp) // save thread pointer in trapframe
+ REG_L t1, L_MD_USP(tp) // get user stack pointer
+ REG_S t1, TF_SP(sp) // save thread pointer in trapframe
csrrw t1, sscratch, zero // swap saved thread pointer with 0
REG_L t1, TF_TP(sp) // save thread pointer in trapframe
li t1, 0 // indicate user exception
Home |
Main Index |
Thread Index |
Old Index