fix CUT macro in cpuid
This commit is contained in:
parent
6edb672951
commit
46124af6cf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue