aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/msr.h
diff options
context:
space:
mode:
authorarun.sharma@intel.com[kaf24] <arun.sharma@intel.com[kaf24]>2005-04-20 10:24:53 +0000
committerarun.sharma@intel.com[kaf24] <arun.sharma@intel.com[kaf24]>2005-04-20 10:24:53 +0000
commit2b85c3297ed93802ba35ee814cf3a0313e7bec2a (patch)
tree8b209aae012b66c938c2b902d683eb0fda2783a7 /xen/include/asm-x86/msr.h
parent0a5d2f011337dc3b5603d07555549336289270f8 (diff)
downloadxen-2b85c3297ed93802ba35ee814cf3a0313e7bec2a.tar.gz
xen-2b85c3297ed93802ba35ee814cf3a0313e7bec2a.tar.bz2
xen-2b85c3297ed93802ba35ee814cf3a0313e7bec2a.zip
bitkeeper revision 1.1335 (42662df5Ky_wqkYVs3ghiLYYBXII2Q)
[PATCH] x86-64-rdmsrl.patch Use the rdmsrl implementation from Linux. Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Diffstat (limited to 'xen/include/asm-x86/msr.h')
-rw-r--r--xen/include/asm-x86/msr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/include/asm-x86/msr.h b/xen/include/asm-x86/msr.h
index 00d7e69e71..5eeda436a7 100644
--- a/xen/include/asm-x86/msr.h
+++ b/xen/include/asm-x86/msr.h
@@ -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 */ \