mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-17 20:32:35 +03:00
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:
|
||||
;now counter in ecx
|
||||
;(edx:eax) esi:edi => edx:esi
|
||||
mov eax,esi
|
||||
wrmsr
|
||||
mov [esp+36],eax
|
||||
mov [esp+24],edx ;ret in ebx?
|
||||
; 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?
|
||||
@@:
|
||||
ret
|
||||
|
||||
cache_disable:
|
||||
|
Loading…
Reference in New Issue
Block a user