WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [PATCH] x86-64-rdmsrl.patch
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Wed, 20 Apr 2005 10:24:53 +0000
Delivery-date: Wed, 20 Apr 2005 11:03:05 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [PATCH] x86-64-rdmsrl.patch, BitKeeper Bot <=