|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH][3/5] x86-64-rdmsrl.patch
Use the rdmsrl implementation from Linux.
Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>
diff -Nru a/xen/include/asm-x86/msr.h b/xen/include/asm-x86/msr.h
--- a/xen/include/asm-x86/msr.h 2005-04-18 16:49:38 -07:00
+++ b/xen/include/asm-x86/msr.h 2005-04-18 16:49:38 -07:00
@@ -6,6 +6,13 @@
: "=a" (val1), "=d" (val2) \
: "c" (msr))
+#define rdmsrl(msr,val) do { unsigned long a__,b__; \
+ __asm__ __volatile__("rdmsr" \
+ : "=a" (a__), "=d" (b__) \
+ : "c" (msr)); \
+ val = a__ | (b__<<32); \
+} while(0);
+
#define wrmsr(msr,val1,val2) \
__asm__ __volatile__("wrmsr" \
: /* no outputs */ \
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH][3/5] x86-64-rdmsrl.patch,
Arun Sharma <=
|
|
|
|
|