Changeset 445 for trunk/kernel/kern
- Timestamp:
- May 29, 2018, 9:27:23 AM (7 years ago)
- Location:
- trunk/kernel/kern
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.c
r443 r445 30 30 #include <chdev.h> 31 31 #include <printk.h> 32 #include <shared_syscalls.h> 32 33 33 34 /////////////////////////////////////////////////////////////////////////////////// … … 416 417 417 418 // suicide 418 hal_core_sleep();419 sys_exit( EXIT_FAILURE ); 419 420 } 420 421 } -
trunk/kernel/kern/process.c
r443 r445 401 401 uint32_t cycle = (uint32_t)hal_get_cycles(); 402 402 if( DEBUG_PROCESS_DESTROY ) 403 printk("\n[DBG] %s : thread %x enter in cluster %x / pid %x / process%x / cycle %d\n",404 __FUNCTION__ , CURRENT_THREAD , pid , process, cycle );403 printk("\n[DBG] %s : thread %x enter for process %x in cluster %x / cycle %d\n", 404 __FUNCTION__ , CURRENT_THREAD , pid , local_cxy , cycle ); 405 405 #endif 406 406 … … 447 447 cycle = (uint32_t)hal_get_cycles(); 448 448 if( DEBUG_PROCESS_DESTROY ) 449 printk("\n[DBG] %s : thread %x exit / destroyed process %x (pid = %x)/ cycle %d\n",450 __FUNCTION__ , CURRENT_THREAD , p rocess, pid, cycle );449 printk("\n[DBG] %s : thread %x exit / destroyed process %x in cluster %x / cycle %d\n", 450 __FUNCTION__ , CURRENT_THREAD , pid, local_cxy, cycle ); 451 451 #endif 452 452 … … 1379 1379 process_txt_detach( XPTR( local_cxy , old_process ) ); 1380 1380 1381 // request old_thread destruction => old_process destruction1381 // block this old_thread 1382 1382 thread_block( XPTR( local_cxy , old_thread ) , THREAD_BLOCKED_GLOBAL ); 1383 hal_atomic_or( &old_thread->flags , THREAD_FLAG_REQ_DELETE ); 1383 1384 // atomically update old_process descriptor term_state to ask 1385 // the parent process (wait() function) to delete this old_thread 1386 hal_atomic_or( &old_process->term_state , PROCESS_TERM_EXIT ); 1384 1387 1385 1388 hal_fence(); -
trunk/kernel/kern/process.h
r443 r445 535 535 /********************************************************************************************* 536 536 * This function detach a process, identified by the <process_xp> argument, 537 * from the list of process attached to a given TXT terminal. 537 * from the list of process attached to a given TXT terminal. It transfer the TXT ownership, 538 * if the detached process is the TXT owner. 538 539 * The target process descriptor must be in the owner cluster, but the calling thread can 539 540 * be running in any cluster. -
trunk/kernel/kern/scheduler.c
r443 r445 248 248 uint32_t cycle = (uint32_t)hal_get_cycles(); 249 249 if( DEBUG_SCHED_HANDLE_SIGNALS < cycle ) 250 printk("\n[DBG] %s : thread %x in proces %x on core[%x,%d] deleted / cycle %d\n",250 printk("\n[DBG] %s : thread %x in process %x on core[%x,%d] deleted / cycle %d\n", 251 251 __FUNCTION__ , thread->trdid , process->pid , local_cxy , thread->core->lid , cycle ); 252 252 #endif
Note: See TracChangeset
for help on using the changeset viewer.