Rev 1362 | Rev 1369 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1362 | Rev 1365 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | ;; |
55 | ;; |
56 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
56 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 57... | Line 57... | ||
57 | 57 | ||
Line 58... | Line 58... | ||
58 | include 'macros.inc' |
58 | include 'macros.inc' |
Line 59... | Line 59... | ||
59 | 59 | ||
Line 60... | Line 60... | ||
60 | $Revision: 1362 $ |
60 | $Revision: 1365 $ |
Line 3406... | Line 3406... | ||
3406 | dd sys_sheduler.03 |
3406 | dd sys_sheduler.03 |
3407 | dd sys_sheduler.04 |
3407 | dd sys_sheduler.04 |
3408 | endg |
3408 | endg |
3409 | sys_sheduler: |
3409 | sys_sheduler: |
3410 | ;rewritten by |
3410 | ;rewritten by |
3411 | ; jmp dword [sheduler+eax*4] |
- | |
3412 | jmp dword [sheduler+ebx*4] |
3411 | jmp dword [sheduler+ebx*4] |
3413 | ;.shed_counter: |
3412 | ;.shed_counter: |
3414 | .00: |
3413 | .00: |
3415 | mov eax,[context_counter] |
3414 | mov eax,[context_counter] |
3416 | mov [esp+32],eax |
3415 | mov [esp+32],eax |
3417 | ret |
3416 | ret |
Line 3418... | Line 3417... | ||
3418 | 3417 | ||
3419 | .02: |
3418 | .02: |
3420 | ;.perf_control: |
3419 | ;.perf_control: |
3421 | ; test ebx,ebx |
3420 | inc ebx ;before ebx=2, ebx=3 |
3422 | ; jz modify_pce ;if ecx=0 |
- | |
3423 | ; dec ebx |
3421 | cmp ebx,ecx ;if ecx=3, ebx=3 |
3424 | ; jz is_cache_enabled ;if ecx=1 |
3422 | jz cache_disable |
3425 | ; dec ebx |
3423 | |
3426 | ; jz cache_enable ;if ecx=2 |
- | |
3427 | ; ret |
- | |
3428 | ;;;;;;;; |
3424 | dec ebx ;ebx=2 |
3429 | test ecx,ecx |
3425 | cmp ebx,ecx ; |
3430 | jz modify_pce ;if ecx=0 |
3426 | jz cache_enable ;if ecx=2 and ebx=2 |
3431 | dec ecx |
3427 | |
3432 | jz is_cache_enabled ;if ecx=1 |
3428 | dec ebx ;ebx=1 |
3433 | dec ecx |
3429 | cmp ebx,ecx |
3434 | jz cache_enable ;if ecx=2 |
- | |
Line -... | Line 3430... | ||
- | 3430 | jz is_cache_enabled ;if ecx=1 and ebx=1 |
|
- | 3431 | ||
- | 3432 | dec ebx |
|
Line -... | Line 3433... | ||
- | 3433 | test ebx,ecx ;ebx=0 and ecx=0 |
|
Line 3435... | Line 3434... | ||
3435 | ret |
3434 | jz modify_pce ;if ecx=0 |
3436 | 3435 | ||
3437 | 3436 | ret |
|
3438 | 3437 |