shithub: riscv

Download patch

ref: 7a97fe132a4112104e53bc133793b433d3e2423c
parent: cd357a2b8c574b0584d6b1736d9bbcaa9704f5ae
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Aug 9 18:43:53 EDT 2015

acid -k: fix intrcount() for amd64

--- a/sys/lib/acid/kernel
+++ b/sys/lib/acid/kernel
@@ -399,7 +399,7 @@
 defn intrcount() {
 	local p, t, i, j;
 
-	p = intrtimes;
+	p = intrtimes\X;
 	i=0; loop 1,256 do {
 		t=0;
 		j=0; loop 1,20 do {
@@ -406,7 +406,9 @@
 			t = t+*p++;
 			j=j+1;
 		}
-		print(itoa(i, "%5d"), " ", itoa(t, "%11d"), "\n");
+		if t != 0 then {
+			print(itoa(i, "%5d"), " ", itoa(t, "%11d"), "\n");
+		}
 		i=i+1;
 	}
 }