vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit 68aa00bb602dfe9315433cd7893c0ed91949b07f
parent 1d93ce1739b4384b73d0c4848e9bb1aeb1054fc6
Author: Russ Cox <rsc@swtch.com>
Date:   Sun, 29 Jun 2008 14:00:19 -0400

9vx: drop scheduling quantum to 25ms

Diffstat:
src/9vx/vx32.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/9vx/vx32.c b/src/9vx/vx32.c @@ -27,6 +27,7 @@ enum { ClockTicks = 1, + ClockMillis = 25, }; int nfaults; @@ -168,10 +169,10 @@ setclock(int start) { struct itimerval itv; - /* Ask for clock tick to interrupt execution after 50ms. */ + /* Ask for clock tick to interrupt execution after ClockMillis ms. */ memset(&itv, 0, sizeof itv); if(start) - itv.it_value.tv_usec = 50*1000; + itv.it_value.tv_usec = ClockMillis*1000; else itv.it_value.tv_usec = 0; setitimer(ITIMER_VIRTUAL, &itv, 0); @@ -277,7 +278,7 @@ touser(void *initsp) abort(); } -up->dbgreg = &u; + up->dbgreg = &u; proc2ureg(vp, &u); u.trap = rc; trap(&u);