Changeset 654 for trunk/hal/tsar_mips32/core/hal_context.c
- Timestamp:
- Nov 14, 2019, 4:03:25 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_context.c
r647 r654 176 176 context->c2_mode = 0x3; 177 177 } 178 179 #if DEBUG_HAL_CONTEXT_INIT 180 hal_cpu_context_display( XPTR( local_cxy , thread ) ); 181 #endif 182 178 183 } // end hal_cpu_context_init() 179 184 … … 235 240 hal_remote_spt( XPTR( child_cxy , &child_ptr->uzone_current ) , child_uzone ); 236 241 237 #if DEBUG_HAL_CONTEXT 242 #if DEBUG_HAL_CONTEXT_FORK 238 243 uint32_t cycle = (uint32_t)hal_get_cycles(); 239 if( DEBUG_HAL_CONTEXT < cycle )244 if( DEBUG_HAL_CONTEXT_FORK < cycle ) 240 245 printk("\n[%s] thread[%x,%x] parent_uzone %x / child_uzone %x / cycle %d\n", 241 246 __FUNCTION__, parent_ptr->process->pid, parent_ptr->trdid, parent_uzone, child_uzone, cycle ); … … 249 254 child_us_base = hal_remote_l32( XPTR( child_cxy , &child_us_vseg->min ) ); 250 255 251 #if DEBUG_HAL_CONTEXT 252 if( DEBUG_HAL_CONTEXT < cycle )256 #if DEBUG_HAL_CONTEXT_FORK 257 if( DEBUG_HAL_CONTEXT_FORK < cycle ) 253 258 printk("\n[%s] thread[%x,%x] parent_ustack_base %x / child_ustack_base %x\n", 254 259 __FUNCTION__, parent_ptr->process->pid, parent_ptr->trdid, parent_us_base, child_us_base ); … … 263 268 (intptr_t)parent_ptr ); 264 269 265 #if DEBUG_HAL_CONTEXT 266 if( DEBUG_HAL_CONTEXT < cycle )270 #if DEBUG_HAL_CONTEXT_FORK 271 if( DEBUG_HAL_CONTEXT_FORK < cycle ) 267 272 printk("\n[%s] thread[%x,%x] parent_ksp %x / child_ksp %x\n", 268 273 __FUNCTION__, parent_ptr->process->pid, parent_ptr->trdid, parent_ksp, child_ksp ); … … 278 283 size ); 279 284 280 #if DEBUG_HAL_CONTEXT 281 if( DEBUG_HAL_CONTEXT < cycle )285 #if DEBUG_HAL_CONTEXT_FORK 286 if( DEBUG_HAL_CONTEXT_FORK < cycle ) 282 287 printk("\n[%s] thread[%x,%x] copied kstack from parent (%x) to child (%x)\n", 283 288 __FUNCTION__, parent_ptr->process->pid, parent_ptr->trdid, parent_ptr, child_ptr ); … … 311 316 uint32_t child_ptpr = (uint32_t)child_gpt_ppn >> 1; 312 317 313 #if DEBUG_HAL_CONTEXT 314 if( DEBUG_HAL_CONTEXT < cycle )318 #if DEBUG_HAL_CONTEXT_FORK 319 if( DEBUG_HAL_CONTEXT_FORK < cycle ) 315 320 printk("\n[%s] thread[%x,%x] : parent_uz_sp %x / child_uz_sp %x\n", 316 321 __FUNCTION__, parent_ptr->process->pid, parent_ptr->trdid, … … 327 332 XPTR( local_cxy , &context ) , 328 333 sizeof( hal_cpu_context_t ) ); 329 #if DEBUG_HAL_CONTEXT 330 if( DEBUG_HAL_CONTEXT < cycle )334 #if DEBUG_HAL_CONTEXT_FORK 335 if( DEBUG_HAL_CONTEXT_FORK < cycle ) 331 336 printk("\n[%s] thread[%x,%x] copied parent CPU context to child CPU context\n", 332 337 __FUNCTION__, parent_ptr->process->pid, parent_ptr->trdid ); … … 336 341 thread_unblock( XPTR( child_cxy , child_ptr ) , THREAD_BLOCKED_GLOBAL ); 337 342 338 #if DEBUG_HAL_CONTEXT 343 #if DEBUG_HAL_CONTEXT_FORK 339 344 cycle = (uint32_t)hal_get_cycles(); 340 345 trdid_t child_trdid = hal_remote_l32( XPTR( child_cxy , &child_ptr->trdid ) );
Note: See TracChangeset
for help on using the changeset viewer.