[KERNEL] use constants instead of hardcoded values, other small fixes

git-svn-id: svn://kolibrios.org@8876 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Rustem Gimadutdinov (rgimad)
2021-06-19 08:41:09 +00:00
parent af4b3b8c45
commit 0f675e4534
7 changed files with 19 additions and 19 deletions

View File

@@ -2363,7 +2363,7 @@ sysfn_zmodif:
mov eax, edx
shl edx, 5
cmp [edx + TASK_TABLE + TASKDATA.state], 9
cmp [edx + TASK_TABLE + TASKDATA.state], TSTATE_FREE
je .fail
cmp ecx, 1
@@ -3606,7 +3606,7 @@ align 4
;--------------------------------------
align 4
.set:
or [edi+SLOT_BASE+APPDATA.occurred_events], 100000b ; set event 6; TODO use constant
or [edi+SLOT_BASE+APPDATA.occurred_events], EVENT_MOUSE
;--------------------------------------
align 4
.skip:
@@ -3674,7 +3674,7 @@ set_bgr_event:
mov [edi+SLOT_BASE+APPDATA.draw_bgr_x], eax
mov [edi+SLOT_BASE+APPDATA.draw_bgr_y], edx
.common:
or [edi+SLOT_BASE+APPDATA.occurred_events], 10000b ; set event 5; TODO use constant
or [edi+SLOT_BASE+APPDATA.occurred_events], EVENT_BACKGROUND
loop set_bgr_event
pop edi ecx
;--------- set event 5 stop -----------