[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [PATCH] x86-64-rdmsrl.patch



ChangeSet 1.1335, 2005/04/20 11:24:53+01:00, arun.sharma@xxxxxxxxx

        [PATCH] x86-64-rdmsrl.patch
        
           Use the rdmsrl implementation from Linux.
        
           Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>



 msr.h |    7 +++++++
 1 files changed, 7 insertions(+)


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-20 07:03:22 -04:00
+++ b/xen/include/asm-x86/msr.h 2005-04-20 07:03:22 -04: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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.