forked from KolibriOS/kolibrios
Kernel scheduler - equal rights for all threads. Discussion http://board.kolibrios.org/viewtopic.php?f=35&t=2303
git-svn-id: svn://kolibrios.org@3504 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ccaf3a054b
commit
f3b083075c
@ -259,7 +259,7 @@ REDRAW_BACKGROUND equ (OS_BASE+0x000FFF0)
|
|||||||
BANK_RW equ (OS_BASE+0x000FFF2)
|
BANK_RW equ (OS_BASE+0x000FFF2)
|
||||||
MOUSE_BACKGROUND equ (OS_BASE+0x000FFF4)
|
MOUSE_BACKGROUND equ (OS_BASE+0x000FFF4)
|
||||||
DONT_DRAW_MOUSE equ (OS_BASE+0x000FFF5)
|
DONT_DRAW_MOUSE equ (OS_BASE+0x000FFF5)
|
||||||
DONT_SWITCH equ (OS_BASE+0x000FFFF)
|
;DONT_SWITCH equ (OS_BASE+0x000FFFF)
|
||||||
|
|
||||||
TMP_STACK_TOP equ 0x006CC00
|
TMP_STACK_TOP equ 0x006CC00
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ irq0:
|
|||||||
.nocounter:
|
.nocounter:
|
||||||
xor ecx, ecx ; send End Of Interrupt signal
|
xor ecx, ecx ; send End Of Interrupt signal
|
||||||
call irq_eoi
|
call irq_eoi
|
||||||
btr dword[DONT_SWITCH], 0
|
; btr dword[DONT_SWITCH], 0
|
||||||
jc .return
|
; jc .return
|
||||||
call find_next_task
|
call find_next_task
|
||||||
jz .return ; if there is only one running process
|
jz .return ; if there is only one running process
|
||||||
call do_change_task
|
call do_change_task
|
||||||
@ -61,7 +61,7 @@ end if
|
|||||||
call find_next_task
|
call find_next_task
|
||||||
jz .return ; the same task -> skip switch
|
jz .return ; the same task -> skip switch
|
||||||
@@:
|
@@:
|
||||||
mov byte[DONT_SWITCH], 1
|
; mov byte[DONT_SWITCH], 1
|
||||||
call do_change_task
|
call do_change_task
|
||||||
.return:
|
.return:
|
||||||
popad
|
popad
|
||||||
|
@ -1221,7 +1221,7 @@ set_variables:
|
|||||||
; mov [MOUSE_X],dword 100*65536+100 ; mouse x/y
|
; mov [MOUSE_X],dword 100*65536+100 ; mouse x/y
|
||||||
|
|
||||||
;!! IP 04.02.2005:
|
;!! IP 04.02.2005:
|
||||||
mov byte [DONT_SWITCH], al; change task if possible
|
; mov byte [DONT_SWITCH], al; change task if possible
|
||||||
pop eax
|
pop eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user