Fast calls

* MSR protect

2kasTIgar:
Update local svn or lock files before update!

git-svn-id: svn://kolibrios.org@482 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Iliya Mihailov (Ghost) 2007-05-09 16:43:35 +00:00
parent 4847853673
commit 9104b5cebc

View File

@ -3321,10 +3321,23 @@ ret
wrmsr_instr:
;now counter in ecx
;(edx:eax) esi:edi => edx:esi
; Fast Call MSR can't be destroy
; Íî MSR_AMD_EFER ìîæíî èçìåíÿòü, ò.ê. â ýòîì ðåãèñòðå ëèø
; âêëþ÷àþòñÿ/âûêëþ÷àþòñÿ ðàñøèðåííûå âîçìîæíîñòè
cmp ecx, MSR_SYSENTER_CS
je @f
cmp ecx, MSR_SYSENTER_ESP
je @f
cmp ecx, MSR_SYSENTER_EIP
je @f
cmp ecx, MSR_AMD_STAR
je @f
mov eax, esi
wrmsr
mov [esp+36],eax
mov [esp+24],edx ;ret in ebx?
; mov [esp + 36], eax
; mov [esp + 24], edx ;ret in ebx?
@@:
ret
cache_disable: