Browse Source

Plan 9 from Bell Labs 2008-05-17

David du Colombier 12 years ago
parent
commit
8b75e17096
4 changed files with 7 additions and 6 deletions
  1. 1 1
      dist/replica/_plan9.db
  2. 1 1
      dist/replica/plan9.db
  3. 1 0
      dist/replica/plan9.log
  4. 4 4
      sys/src/9/port/devproc.c

+ 1 - 1
dist/replica/_plan9.db

@@ -8257,7 +8257,7 @@ sys/src/9/port/devmntstats.c - 664 sys sys 1014931173 4039
 sys/src/9/port/devmouse.c - 664 sys sys 1192564555 13904
 sys/src/9/port/devpipe.c - 664 sys sys 1077055016 5825
 sys/src/9/port/devpnp.c - 664 sys sys 1088560907 13624
-sys/src/9/port/devproc.c - 664 sys sys 1205384114 28476
+sys/src/9/port/devproc.c - 664 sys sys 1210984256 28480
 sys/src/9/port/devroot.c - 664 sys sys 1146151714 4242
 sys/src/9/port/devsd.c - 664 sys sys 1186965855 31275
 sys/src/9/port/devsdp.c - 664 sys sys 1057323393 44800

+ 1 - 1
dist/replica/plan9.db

@@ -8257,7 +8257,7 @@ sys/src/9/port/devmntstats.c - 664 sys sys 1014931173 4039
 sys/src/9/port/devmouse.c - 664 sys sys 1192564555 13904
 sys/src/9/port/devpipe.c - 664 sys sys 1077055016 5825
 sys/src/9/port/devpnp.c - 664 sys sys 1088560907 13624
-sys/src/9/port/devproc.c - 664 sys sys 1205384114 28476
+sys/src/9/port/devproc.c - 664 sys sys 1210984256 28480
 sys/src/9/port/devroot.c - 664 sys sys 1146151714 4242
 sys/src/9/port/devsd.c - 664 sys sys 1186965855 31275
 sys/src/9/port/devsdp.c - 664 sys sys 1057323393 44800

+ 1 - 0
dist/replica/plan9.log

@@ -19658,3 +19658,4 @@
 1210786204 0 c sys/lib/tmac/tmac.s - 664 sys sys 1210784977 23053
 1210798803 0 c sys/lib/tmac/tmac.v - 664 sys sys 1210797963 8965
 1210815004 0 c sys/man/8/ppp - 664 sys sys 1210814269 4464
+1210984206 0 c sys/src/9/port/devproc.c - 664 sys sys 1210984256 28480

+ 4 - 4
sys/src/9/port/devproc.c

@@ -1056,8 +1056,8 @@ procwrite(Chan *c, void *va, long n, vlong off)
 
 	case Qregs:
 		if(offset >= sizeof(Ureg))
-			return 0;
-		if(offset+n > sizeof(Ureg))
+			n = 0;
+		else if(offset+n > sizeof(Ureg))
 			n = sizeof(Ureg) - offset;
 		if(p->dbgreg == 0)
 			error(Enoreg);
@@ -1066,8 +1066,8 @@ procwrite(Chan *c, void *va, long n, vlong off)
 
 	case Qfpregs:
 		if(offset >= sizeof(FPsave))
-			return 0;
-		if(offset+n > sizeof(FPsave))
+			n = 0;
+		else if(offset+n > sizeof(FPsave))
 			n = sizeof(FPsave) - offset;
 		memmove((uchar*)&p->fpsave+offset, va, n);
 		break;