bugfix for svn rev. 1344

git-svn-id: svn://kolibrios.org@1365 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Alexey Teplov ( 2010-01-07 16:33:53 +00:00
parent c1daef2ebc
commit 5c5874e6df

View File

@ -3408,7 +3408,6 @@ sheduler:
endg endg
sys_sheduler: sys_sheduler:
;rewritten by <Lrz> 29.12.2009 ;rewritten by <Lrz> 29.12.2009
; jmp dword [sheduler+eax*4]
jmp dword [sheduler+ebx*4] jmp dword [sheduler+ebx*4]
;.shed_counter: ;.shed_counter:
.00: .00:
@ -3418,24 +3417,24 @@ sys_sheduler:
.02: .02:
;.perf_control: ;.perf_control:
; test ebx,ebx inc ebx ;before ebx=2, ebx=3
; jz modify_pce ;if ecx=0 cmp ebx,ecx ;if ecx=3, ebx=3
; dec ebx jz cache_disable
; jz is_cache_enabled ;if ecx=1
; dec ebx dec ebx ;ebx=2
; jz cache_enable ;if ecx=2 cmp ebx,ecx ;
; ret jz cache_enable ;if ecx=2 and ebx=2
;;;;;;;;
test ecx,ecx dec ebx ;ebx=1
cmp ebx,ecx
jz is_cache_enabled ;if ecx=1 and ebx=1
dec ebx
test ebx,ecx ;ebx=0 and ecx=0
jz modify_pce ;if ecx=0 jz modify_pce ;if ecx=0
dec ecx
jz is_cache_enabled ;if ecx=1
dec ecx
jz cache_enable ;if ecx=2
ret ret
.03: .03:
;.rdmsr_instr: ;.rdmsr_instr:
;now counter in ecx ;now counter in ecx