/kernel/trunk/network/socket.inc |
---|
215,7 → 215,7 |
mov [eax + SOCKET.RemoteIP], edx |
mov [eax + SOCKET.rxDataCount], dword 0 ; recieved data count |
mov esi, [0x3010] |
mov esi, [TASK_BASE] |
mov ebx, [esi+TASKDATA.pid] |
mov [eax + SOCKET.PID], ebx ; save the process ID |
pop eax ; Get the socket number back, so we can return it |
279,7 → 279,7 |
sot_001: |
mov [eax + SOCKET.TCBState], ebx ; Indicate the state of the TCB |
mov esi, [0x3010] |
mov esi, [TASK_BASE] |
mov ecx, [esi+TASKDATA.pid] |
mov [eax + SOCKET.PID], ecx ; save the process ID |
709,7 → 709,7 |
pop eax ; get callers ptr to data to send |
; Get the address of the callers data |
mov edi, [0x3010] |
mov edi, [TASK_BASE] |
add edi, TASKDATA.mem_start |
add eax, [edi] |
mov esi, eax |
824,7 → 824,7 |
mov bl, 0x10 ; ACK |
; Get the address of the callers data |
mov edi, [0x3010] |
mov edi, [TASK_BASE] |
add edi, TASKDATA.mem_start |
add edx, [edi] |
mov esi, edx |
/kernel/trunk/network/stack.inc |
---|
929,7 → 929,7 |
push eax ; save address of IP data |
; Get the address of the callers data |
mov edi,[0x3010] |
mov edi,[TASK_BASE] |
add edi,TASKDATA.mem_start |
add edx,[edi] |
mov edi, edx |
992,7 → 992,7 |
pop eax ; get callers ptr to data to send |
; Get the address of the callers data |
mov edi,[0x3010] |
mov edi,[TASK_BASE] |
add edi,TASKDATA.mem_start |
add eax,[edi] |
mov esi, eax |
/kernel/trunk/network/tcp.inc |
---|
1057,7 → 1057,7 |
; flag an event to the application |
pop eax |
mov ecx,1 |
mov esi,0x3020+TASKDATA.pid |
mov esi,TASK_DATA+TASKDATA.pid |
news: |
cmp [esi],eax |
1064,7 → 1064,7 |
je foundPID1 |
inc ecx |
add esi,0x20 |
cmp ecx,[0x3004] |
cmp ecx,[TASK_COUNT] |
jbe news |
foundPID1: |
/kernel/trunk/network/udp.inc |
---|
141,7 → 141,7 |
; flag an event to the application |
pop eax |
mov ecx,1 |
mov esi,0x3020+TASKDATA.pid |
mov esi,TASK_DATA+TASKDATA.pid |
newsearch: |
cmp [esi],eax |
148,7 → 148,7 |
je foundPID |
inc ecx |
add esi,0x20 |
cmp ecx,[0x3004] |
cmp ecx,[TASK_COUNT] |
jbe newsearch |
foundPID: |