00001 /* define for src/arch/x86/msr.cpp */ 00002 #ifndef _CORE_ARCH_X86_MSR_HPP 00003 #define _CORE_ARCH_X86_MSR_HPP 00004 00005 namespace Arch { 00006 namespace x86 { 00007 00008 00009 /*machine specific registers for ia-32*/ 00010 const uint32 SYSENTER_CS_MSR = 0x174; 00011 const uint32 SYSENTER_ESP_MSR = 0x175; 00012 const uint32 SYSENTER_EIP_MSR = 0x176; 00013 00014 void wrmsr(uint32 reg, uint64 val); /*write a msr register*/ 00015 uint64 rdmsr(uint32 reg); /*read a msr register*/ 00016 00017 00018 }; /*namespace x86*/ 00019 }; /*namespace Arch*/ 00020 00021 #endif