Fixed Network2 event (low level network event)

git-svn-id: svn://kolibrios.org@3518 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-05-17 13:33:04 +00:00
parent b7bd43fe91
commit a0f9d2e236
4 changed files with 79 additions and 77 deletions

View File

@ -576,12 +576,13 @@ EV_IPC = 7
EV_STACK = 8 EV_STACK = 8
; event mask bits for function 40 ; event mask bits for function 40
EVM_REDRAW = 1b EVM_REDRAW = 1b
EVM_KEY = 10b EVM_KEY = 10b
EVM_BUTTON = 100b EVM_BUTTON = 100b
EVM_EXIT = 1000b EVM_EXIT = 1000b
EVM_BACKGROUND = 10000b EVM_BACKGROUND = 10000b
EVM_MOUSE = 100000b EVM_MOUSE = 100000b
EVM_IPC = 1000000b EVM_IPC = 1000000b
EVM_STACK = 10000000b EVM_STACK = 10000000b
EVM_STACK2 = 0x400 EVM_DEBUG = 100000000b
EVM_STACK2 = 1000000000b

View File

@ -400,8 +400,9 @@ EVENT_MOUSE equ 0x00000020
EVENT_IPC equ 0x00000040 EVENT_IPC equ 0x00000040
EVENT_NETWORK equ 0x00000080 EVENT_NETWORK equ 0x00000080
EVENT_DEBUG equ 0x00000100 EVENT_DEBUG equ 0x00000100
EVENT_EXTENDED equ 0x00000200 EVENT_NETWORK2 equ 0x00000200
EVENT_NETWORK2 equ 0x00000400 EVENT_EXTENDED equ 0x00000400
EV_INTR equ 1 EV_INTR equ 1

View File

@ -515,8 +515,8 @@ align 4
jz .no_events ; исчерпали все биты маски, но ничего не нашли ??? jz .no_events ; исчерпали все биты маски, но ничего не нашли ???
btr ecx, eax ; сбрасываем проверяемый бит маски btr ecx, eax ; сбрасываем проверяемый бит маски
; переходим на обработчик этого (eax) бита ; переходим на обработчик этого (eax) бита
cmp eax, 9 cmp eax, 10
jae .loop ; eax=[9..31], ignored (event 10...32) jae .loop ; eax=[10..31], ignored (event 11...32)
cmp eax, 3 cmp eax, 3
je .loop ; eax=3, ignored (event 4) je .loop ; eax=3, ignored (event 4)
@ -527,7 +527,7 @@ align 4
cmp eax, 5 cmp eax, 5
je .mouse_check ; eax=5, retvals=eax+1 (event 6) je .mouse_check ; eax=5, retvals=eax+1 (event 6)
ja .FlagAutoReset ; eax=[6..8], retvals=eax+1 (event 7...9) ja .FlagAutoReset ; eax=[6..8], retvals=eax+1 (event 7...10)
cmp eax, 1 cmp eax, 1
jae .BtKy ; eax=[1,2], retvals=eax+1 (event 2,3) jae .BtKy ; eax=[1,2], retvals=eax+1 (event 2,3)

View File

@ -317,7 +317,7 @@ NET_send_event:
loop .loop loop .loop
pop ecx edi pop ecx edi
; call change_task call change_task
ret ret