1. 关于sysenter sysexit wrmsr rdmsr请看cpu手册
P4_IA32 Intel Architecture Software Developer's Manual
24547110.pdf
page 3-763
2.xp初始化流程
KeInitSystem->KiInitMachineDependent->KiRestoreFastSyscallReturnState->KiLoadFastSyscallMachineSpecificRegisters->WRMSR
.text:00439A80
.text:00439A80 ; 圹圹圹圹圹圹圹?S U B R O U T I N E 圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹?
.text:00439A80
.text:00439A80
.text:00439A80 ; __stdcall KiLoadFastSyscallMachineSpecificRegisters(x)
.text:00439A80 _KiLoadFastSyscallMachineSpecificRegisters@4 proc near
.text:00439A80 ; DATA XREF: KiRestoreFastSyscallReturnState()+31o
.text:00439A80 8B FF mov edi, edi
.text:00439A82 56 push esi
.text:00439A83 db 3Eh
.text:00439A83 3E A1 20 F0 DF FF mov eax, ds:0FFDFF020h
.text:00439A89 80 3D FC 20 48 00 00 cmp ds:_KiFastSystemCallIsIA32, 0
.text:00439A90 8B F0 mov esi, eax
.text:00439A92 74 31 jz short loc_439AC5
.text:00439A94 6A 00 push 0
.text:00439A96 6A 08 push 8
.text:00439A98 68 74 01 00 00 push 174h
.text:00439A9D E8 2B 00 00 00 call _WRMSR@12 ; WRMSR(x,x,x)
.text:00439AA2 6A 00 push 0
.text:00439AA4 68 F0 76 40 00 push offset _KiFastCallEntry
.text:00439AA9 68 76 01 00 00 push 176h
.text:00439AAE E8 1A 00 00 00 call _WRMSR@12 ; WRMSR(x,x,x)
.text:00439AB3 6A