summaryrefslogtreecommitdiff
path: root/msr.h
AgeCommit message (Collapse)AuthorFilesLines
2008-12-24Fix up warnings. Add -Werror to catch new ones.Dave Jones1-1/+1
The lsmsr ones are kind of brute-force fixes because I'm lazy right now. We should possibly just use unsigned long longs everywhere, instead of all those u_int64_t's.
2008-12-16x86info: Fix inline assembly build errors.Jike Song1-1/+1
For the lastest git tree, there are impossible constraints for inline asm. This patch also fixes a print format issue. $ gcc -dumpversion 4.2.4 $ make -i gcc -Wall -W -Wshadow -g -O2 -MMD -o cpuid.o -c cpuid.c cpuid.c: In function 'native_cpuid': cpuid.c:54: error: impossible register constraint in 'asm' make: [cpuid.o] Error 1 (ignored) scripts/testnodes gcc -Wall -W -Wshadow -g -O2 -MMD -o lsmsr.o -c lsmsr.c In file included from lsmsr.c:27: msr.h: In function 'print_reg': msr.h:126: warning: format '%16.16lx' expects type 'long unsigned int', but argument 5 has type 'uint64_t' lsmsr.c: In function '_show_msr': lsmsr.c:170: warning: passing argument 2 of 'get_msr_val' from incompatible pointer type gcc -Wall -W -Wshadow -g -O2 -o lsmsr lsmsr.o cpuid.o havecpuid.o Signed-off-by: Jike Song <jike.song@sun.com>
2008-10-09x86info: add header for MSR register definition and handlingAndreas Herrmann1-0/+134
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>