From f3b083075ca2c9a1691d914c692c09987bbe362f Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Tue, 14 May 2013 22:47:15 +0000 Subject: [PATCH] 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 --- kernel/trunk/const.inc | 2 +- kernel/trunk/core/sched.inc | 6 +++--- kernel/trunk/kernel.asm | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/trunk/const.inc b/kernel/trunk/const.inc index 3ac6f08c2c..980a6f08f0 100644 --- a/kernel/trunk/const.inc +++ b/kernel/trunk/const.inc @@ -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 diff --git a/kernel/trunk/core/sched.inc b/kernel/trunk/core/sched.inc index 756d66f77f..7907ca8940 100644 --- a/kernel/trunk/core/sched.inc +++ b/kernel/trunk/core/sched.inc @@ -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 diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 72918eb722..f633e91c63 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -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