summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraiju <aiju@phicode.de>2012-08-24 19:19:42 +0200
committeraiju <aiju@phicode.de>2012-08-24 19:19:42 +0200
commit46124af6cfa35a58b853bb625f2a57f7d6ea249f (patch)
tree79ee85a01eb4b98216f035806a1918ecda5c1436
parent6edb672951d130524adbe5d7ff19f1f6d610cefc (diff)
downloadplan9front-46124af6cfa35a58b853bb625f2a57f7d6ea249f.tar.xz
fix CUT macro in cpuid
-rw-r--r--sys/src/cmd/aux/cpuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/cpuid.c b/sys/src/cmd/aux/cpuid.c
index 8312445cf..e0caaeeb0 100644
--- a/sys/src/cmd/aux/cpuid.c
+++ b/sys/src/cmd/aux/cpuid.c
@@ -2,7 +2,7 @@
#include <libc.h>
#include <bio.h>
-#define CUT(x, a, b) (((x)&((1<<(b))-1))>>(a))
+#define CUT(x, a, b) (((x)&((1<<((b)+1))-1))>>(a))
typedef struct Res {
ulong ax, bx, cx, dx;