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:
Marat Zakiyanov (Mario79) 2013-05-14 22:47:15 +00:00
parent ccaf3a054b
commit f3b083075c
3 changed files with 5 additions and 5 deletions

View File

@ -259,7 +259,7 @@ REDRAW_BACKGROUND equ (OS_BASE+0x000FFF0)
BANK_RW equ (OS_BASE+0x000FFF2)
MOUSE_BACKGROUND equ (OS_BASE+0x000FFF4)
DONT_DRAW_MOUSE equ (OS_BASE+0x000FFF5)
DONT_SWITCH equ (OS_BASE+0x000FFFF)
;DONT_SWITCH equ (OS_BASE+0x000FFFF)
TMP_STACK_TOP equ 0x006CC00

View File

@ -29,8 +29,8 @@ irq0:
.nocounter:
xor ecx, ecx ; send End Of Interrupt signal
call irq_eoi
btr dword[DONT_SWITCH], 0
jc .return
; btr dword[DONT_SWITCH], 0
; jc .return
call find_next_task
jz .return ; if there is only one running process
call do_change_task
@ -61,7 +61,7 @@ end if
call find_next_task
jz .return ; the same task -> skip switch
@@:
mov byte[DONT_SWITCH], 1
; mov byte[DONT_SWITCH], 1
call do_change_task
.return:
popad

View File

@ -1221,7 +1221,7 @@ set_variables:
; mov [MOUSE_X],dword 100*65536+100 ; mouse x/y
;!! IP 04.02.2005:
mov byte [DONT_SWITCH], al; change task if possible
; mov byte [DONT_SWITCH], al; change task if possible
pop eax
ret