ia64/xen-unstable

changeset 4587:65d78e532664

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>
author arun.sharma@intel.com[kaf24]
date Wed Apr 20 10:24:53 2005 +0000 (2005-04-20)
parents 5c732392ad8c
children b1cb9f7f34f9
files xen/include/asm-x86/msr.h
line diff
     1.1 --- a/xen/include/asm-x86/msr.h	Wed Apr 20 10:24:32 2005 +0000
     1.2 +++ b/xen/include/asm-x86/msr.h	Wed Apr 20 10:24:53 2005 +0000
     1.3 @@ -6,6 +6,13 @@
     1.4  			  : "=a" (val1), "=d" (val2) \
     1.5  			  : "c" (msr))
     1.6  
     1.7 +#define rdmsrl(msr,val) do { unsigned long a__,b__; \
     1.8 +       __asm__ __volatile__("rdmsr" \
     1.9 +			    : "=a" (a__), "=d" (b__) \
    1.10 +			    : "c" (msr)); \
    1.11 +       val = a__ | (b__<<32); \
    1.12 +} while(0); 
    1.13 +
    1.14  #define wrmsr(msr,val1,val2) \
    1.15       __asm__ __volatile__("wrmsr" \
    1.16  			  : /* no outputs */ \