Subversion Repositories Kolibri OS

Rev

Rev 473 | Rev 479 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 473 Rev 477
Line 52... Line 52...
52
;;
52
;;
53
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
53
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 54... Line 54...
54
 
54
 
Line 55... Line 55...
55
include 'macros.inc'
55
include 'macros.inc'
Line 56... Line 56...
56
 
56
 
57
$Revision: 473 $
57
$Revision: 477 $
58
 
58
 
Line 3296... Line 3296...
3296
ret
3296
ret
Line 3297... Line 3297...
3297
 
3297
 
3298
wrmsr_instr:
3298
wrmsr_instr:
3299
;now counter in ecx
3299
;now counter in ecx
-
 
3300
;(edx:eax) esi:edi => edx:esi
-
 
3301
	; Fast Call MSR can't be destroy
-
 
3302
	; Íî MSR_AMD_EFER ìîæíî èçìåíÿòü, ò.ê. â ýòîì ðåãèñòðå ëèø
-
 
3303
	; âêëþ÷àþòñÿ/âûêëþ÷àþòñÿ ðàñøèðåííûå âîçìîæíîñòè
-
 
3304
	cmp	ecx, MSR_SYSENTER_CS
-
 
3305
	je	@f
-
 
3306
	cmp	ecx, MSR_SYSENTER_ESP
-
 
3307
	je	@f
-
 
3308
	cmp	ecx, MSR_SYSENTER_EIP
-
 
3309
	je	@f
-
 
3310
	cmp	ecx, MSR_AMD_STAR
-
 
3311
	je	@f
3300
;(edx:eax) esi:edi => edx:esi
3312
 
3301
mov eax,esi
3313
	mov	eax, esi
3302
wrmsr
3314
	wrmsr
3303
mov [esp+36],eax
-
 
3304
mov [esp+24],edx ;ret in ebx?
3315
@@:
Line -... Line 3316...
-
 
3316
ret
3305
ret
3317
 
3306
 
3318
 
3307
cache_disable:
3319
cache_disable:
3308
       mov eax,cr0
3320
       mov eax,cr0
3309
       or  eax,01100000000000000000000000000000b
3321
       or  eax,01100000000000000000000000000000b