fix CUT macro in cpuid

This commit is contained in:
aiju 2012-08-24 19:19:42 +02:00
parent 6edb672951
commit 46124af6cf

View file

@ -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;