Changeset dd4d6b0 in mainline for arch/amd64/include/asm.h
- Timestamp:
- 2006-02-06T23:47:47Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 37b451f7
- Parents:
- 40ca402
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/asm.h
r40ca402 rdd4d6b0 189 189 } 190 190 191 /** Write to MSR */ 192 static inline void write_msr(__u32 msr, __u64 value) 193 { 194 __asm__ volatile ( 195 "wrmsr;" : : "c" (msr), 196 "a" ((__u32)(value)), 197 "d" ((__u32)(value >> 32)) 198 ); 199 } 200 201 static inline __native read_msr(__u32 msr) 202 { 203 __u32 ax, dx; 204 205 __asm__ volatile ( 206 "rdmsr;" : "=a"(ax), "=d"(dx) : "c" (msr) 207 ); 208 return ((__u64)dx << 32) | ax; 209 } 210 191 211 192 212 /** Enable local APIC
Note:
See TracChangeset
for help on using the changeset viewer.