Fixed that horrible TCP kernel crash.

git-svn-id: svn://kolibrios.org@3697 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-06-24 10:47:25 +00:00
parent c8f93d8d8f
commit a5c3784aca

View File

@ -127,8 +127,9 @@ struct TCP_queue_entry
ends ends
align 4
uglobal uglobal
align 4
TCP_segments_tx rd NET_DEVICES_MAX TCP_segments_tx rd NET_DEVICES_MAX
TCP_segments_rx rd NET_DEVICES_MAX TCP_segments_rx rd NET_DEVICES_MAX
TCP_segments_missed rd NET_DEVICES_MAX TCP_segments_missed rd NET_DEVICES_MAX
@ -136,7 +137,7 @@ uglobal
; TCP_bytes_rx rq NET_DEVICES_MAX ; TCP_bytes_rx rq NET_DEVICES_MAX
; TCP_bytes_tx rq NET_DEVICES_MAX ; TCP_bytes_tx rq NET_DEVICES_MAX
TCP_sequence_num dd ? TCP_sequence_num dd ?
TCP_queue rd TCP_QUEUE_SIZE*sizeof.TCP_queue_entry/4 TCP_queue rd (TCP_QUEUE_SIZE*sizeof.TCP_queue_entry + sizeof.queue)/4
TCP_input_event dd ? TCP_input_event dd ?
endg endg
@ -163,6 +164,10 @@ macro TCP_init {
movi ebx, 1 movi ebx, 1
mov ecx, TCP_process_input mov ecx, TCP_process_input
call new_sys_threads call new_sys_threads
test eax, eax
jns @f
DEBUGF DEBUG_NETWORK_ERROR,'K : cannot create kernel thread for TCP, error %d\n', eax
@@:
} }