Changeset 633 for trunk/kernel/kern/process.c
- Timestamp:
- May 28, 2019, 6:10:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/process.c
r629 r633 789 789 thread_t * this; // pointer on calling thread 790 790 uint32_t ltid; // index in process th_tbl[] 791 cxy_t owner_cxy; // target process owner cluster792 791 uint32_t count; // requests counter 793 792 volatile uint32_t ack_count; // acknowledges counter … … 807 806 assert( (LPID_FROM_PID( process->pid ) != 0 ), 808 807 "process %x is not an user process\n", process->pid ); 809 810 // get target process owner cluster811 owner_cxy = CXY_FROM_PID( process->pid );812 808 813 809 // get lock protecting process th_tbl[] … … 873 869 xptr_t client_xp ) 874 870 { 875 thread_t * this; // pointer on calling thread876 871 thread_t * target; // local pointer on target thread 877 872 xptr_t target_xp; // extended pointer on target thread … … 881 876 882 877 // get calling thread pointer 883 this = CURRENT_THREAD;884 878 885 879 // get target process owner cluster … … 887 881 888 882 #if DEBUG_PROCESS_SIGACTION 889 uint32_t cycle = (uint32_t)hal_get_cycles(); 883 thread_t * this = CURRENT_THREAD; 884 uint32_t cycle = (uint32_t)hal_get_cycles(); 890 885 if( DEBUG_PROCESS_SIGACTION < cycle ) 891 886 printk("\n[%s] thread[%x,%x] enter for process %x n cluster %x / cycle %d\n", … … 937 932 { 938 933 thread_t * target; // pointer on target thead 939 thread_t * this; // pointer on calling thread940 934 uint32_t ltid; // index in process th_tbl 941 935 uint32_t count; // requests counter 942 936 943 // get calling thread pointer944 this = CURRENT_THREAD;945 946 937 #if DEBUG_PROCESS_SIGACTION 947 pid_t pid = process->pid; 948 uint32_t cycle = (uint32_t)hal_get_cycles(); 938 thread_t * this = CURRENT_THREAD; 939 pid_t pid = process->pid; 940 uint32_t cycle = (uint32_t)hal_get_cycles(); 949 941 if( DEBUG_PROCESS_SIGACTION < cycle ) 950 942 printk("\n[%s] thread[%x,%x] enter for process %x in cluster %x / cycle %d\n",
Note: See TracChangeset
for help on using the changeset viewer.