Skip to content

Commit

Permalink
Revert separate thread for receiving data (that was implemented in th…
Browse files Browse the repository at this point in the history
…e context of making the driver work for DosEMU?) #672
  • Loading branch information
Falk Rehwagen committed Oct 31, 2024
1 parent dd70c32 commit 0abd234
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Driver/Socket/EtherPKT/ethpktInit.asm
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ next:
mov dx, offset EthPktRecvHandlerThread
mov di, 1024
mov bp, handle 0 ; owner
call ThreadCreate
;call ThreadCreate

ret
EthPktInitRecvBuffers endp
Expand Down
30 changes: 15 additions & 15 deletions Driver/Socket/EtherPKT/ethpktTransceive.asm
Original file line number Diff line number Diff line change
Expand Up @@ -420,34 +420,34 @@ newRecvStack:
mov ds:[currentRecvBuf], si
;tst ds:[saveSS]
;jnz alreadyUsingStack
;mov ds:[saveSS], ss
;mov ds:[saveSP], sp
;mov bx, ds
;mov ss, bx
;mov sp, offset endLocalStack
tst ds:[saveSS]
jnz alreadyUsingStack
mov ds:[saveSS], ss
mov ds:[saveSP], sp
mov bx, ds
mov ss, bx
mov sp, offset endLocalStack
;mov bx, ds:[etherThread]
mov bx, ds:[etherThread]
;Assert ne, bx, NULL ; It may be bad to "Assert thread" at
; interrupt time.

;mov di, mask MF_FORCE_QUEUE
mov di, mask MF_FORCE_QUEUE
;WARNING ENTER_OBJ_MESSAGE
;;INT_ON
;push ds
;call ObjMessage ; returns interrupt on
;pop ds
push ds
call ObjMessage ; returns interrupt on
pop ds
;WARNING LEFT_OBJ_MESSAGE
;INT_OFF
;;mov ss, ds:[saveSS]
;;mov sp, ds:[saveSP]
mov ss, ds:[saveSS]
mov sp, ds:[saveSP]
;WARNING LEFT_OBJ_MESSAGE
;clr ds:[saveSS]
clr ds:[saveSS]
;WARNING LEFT_OBJ_MESSAGE
;WARNING LEFT_OBJ_MESSAGE
jmp exit
Expand Down

0 comments on commit 0abd234

Please sign in to comment.