Introduced APPDATA, TASKDATA, WNDDATA, RECT, BOX structures.

git-svn-id: svn://kolibrios.org@115 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Ivan Poddubny
2006-08-06 10:29:45 +00:00
parent 9a27b206b3
commit 3e2bc5b35f
29 changed files with 534 additions and 561 deletions

View File

@@ -995,7 +995,7 @@ stack_get_packet:
; Get the address of the callers data
mov edi,[0x3010]
add edi,0x10
add edi,TASKDATA.mem_start
add edx,[edi]
mov edi, edx
@@ -1058,7 +1058,7 @@ stack_insert_packet:
; Get the address of the callers data
mov edi,[0x3010]
add edi,0x10
add edi,TASKDATA.mem_start
add eax,[edi]
mov esi, eax
@@ -1117,7 +1117,7 @@ socket_open:
mov [eax + 24], dword 0 ; recieved data count
mov esi, [0x3010]
mov ebx, [esi+0x4]
mov ebx, [esi+TASKDATA.pid]
mov [eax + 4], ebx ; save the process ID
pop eax ; Get the socket number back, so we can return it
@@ -1176,7 +1176,7 @@ sot_001:
mov [eax + 28], ebx ; Indicate the state of the TCB
mov esi, [0x3010]
mov ecx, [esi+0x4]
mov ecx, [esi+TASKDATA.pid]
mov [eax + 4], ecx ; save the process ID
cmp ebx, TCB_LISTEN
@@ -1548,7 +1548,7 @@ socket_write:
; Get the address of the callers data
mov edi,[0x3010]
add edi,0x10
add edi,TASKDATA.mem_start
add eax,[edi]
mov esi, eax
@@ -1671,7 +1671,7 @@ socket_write_tcp:
; Get the address of the callers data
mov edi,[0x3010]
add edi,0x10
add edi,TASKDATA.mem_start
add edx,[edi]
mov esi, edx

View File

@@ -1004,7 +1004,7 @@ ste_data:
; flag an event to the application
pop eax
mov ecx,1
mov esi,0x3020+0x4
mov esi,0x3020+TASKDATA.pid
news:
cmp [esi],eax
@@ -1016,7 +1016,7 @@ news:
foundPID1:
shl ecx,8
or dword [ecx+0x80000+0xA8],dword 10000000b ; stack event
or dword [ecx+0x80000+APPDATA.event_mask],dword 10000000b ; stack event
pop ecx

View File

@@ -114,7 +114,7 @@ udprx_002:
; flag an event to the application
pop eax
mov ecx,1
mov esi,0x3020+0x4
mov esi,0x3020+TASKDATA.pid
newsearch:
cmp [esi],eax
@@ -126,7 +126,7 @@ newsearch:
foundPID:
shl ecx,8
or dword [ecx+0x80000+0xA8],dword 10000000b ; stack event
or dword [ecx+0x80000+APPDATA.event_mask],dword 10000000b ; stack event
mov [check_idle_semaphore],200