Re: CVS commit: src/sys/arch/riscv/riscv

2015-03-31 Thread Matt Thomas
> On Mar 31, 2015, at 3:12 AM, Reinoud Zandijk wrote: > > Hi Matt, > > On Tue, Mar 31, 2015 at 01:30:50AM +, Matt Thomas wrote: >> When the cpu gets an exception from kernel mode, the sscratch register will >> be >> 0 and curlwp will be in the "tp" register. When the cpu gets an exception

Re: CVS commit: src/sys/arch/riscv/riscv

2015-03-31 Thread Reinoud Zandijk
Hi Matt, On Tue, Mar 31, 2015 at 01:30:50AM +, Matt Thomas wrote: > When the cpu gets an exception from kernel mode, the sscratch register will be > 0 and curlwp will be in the "tp" register. When the cpu gets an exception > from > user mode, the sscratch register will be a pointer to the cu