forked from KolibriOS/kolibrios
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:
parent
4847853673
commit
9104b5cebc
@ -3321,10 +3321,23 @@ ret
|
|||||||
wrmsr_instr:
|
wrmsr_instr:
|
||||||
;now counter in ecx
|
;now counter in ecx
|
||||||
;(edx:eax) esi:edi => edx:esi
|
;(edx:eax) esi:edi => edx:esi
|
||||||
mov eax,esi
|
; Fast Call MSR can't be destroy
|
||||||
wrmsr
|
; Íî MSR_AMD_EFER ìîæíî èçìåíÿòü, ò.ê. â ýòîì ðåãèñòðå ëèø
|
||||||
mov [esp+36],eax
|
; âêëþ÷àþòñÿ/âûêëþ÷àþòñÿ ðàñøèðåííûå âîçìîæíîñòè
|
||||||
mov [esp+24],edx ;ret in ebx?
|
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?
|
||||||
|
@@:
|
||||||
ret
|
ret
|
||||||
|
|
||||||
cache_disable:
|
cache_disable:
|
||||||
|
Loading…
Reference in New Issue
Block a user