shithub: riscv

Download patch

ref: cf78fd37cb209481692f4fcd796aa1c5d60437ef
parent: 9e926eeb4e3c716bcbd11377c131061cd06900ef
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Sep 6 18:27:26 EDT 2016

devproc: do unsigned subtraction to get MACHP(0)->ticks - up->times[TReal] delta

--- a/sys/src/9/port/devproc.c
+++ b/sys/src/9/port/devproc.c
@@ -718,7 +718,7 @@
 {
 	char *a, *sps, statbuf[1024];
 	int i, j, navail, ne, rsize;
-	long l;
+	ulong l;
 	uchar *rptr;
 	uintptr addr;
 	ulong offset;