shithub: riscv

Download patch

ref: c4679d743aa64ff95437a92d17f186eb6758168b
parent: 37de63aec3989dee1061c73ada21fd2e23ceb7e0
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Feb 10 18:12:52 EST 2014

pc64: return up in RUSER (BP) for devproc kregs file

--- a/sys/src/9/pc64/mkfile
+++ b/sys/src/9/pc64/mkfile
@@ -143,7 +143,7 @@
 	aux/na $prereq > $target
 
 acid:V:
-	$CC -a -w -I. -. ../pc/i8253.c>acid
+	$CC -a -w main.c>acid
 
 %.clean:V:
 	rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* apbootstrap.h init.h $PCHEADERS
--- a/sys/src/9/pc64/trap.c
+++ b/sys/src/9/pc64/trap.c
@@ -1051,6 +1051,7 @@
 {
 	ureg->pc = p->sched.pc;
 	ureg->sp = p->sched.sp+8;
+	ureg->r14 = (uintptr)p;
 }
 
 uintptr