Changeset 611 for trunk/kernel/kern/thread.c
- Timestamp:
- Jan 9, 2019, 3:02:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/thread.c
r593 r611 326 326 { 327 327 printk("\n[ERROR] in %s : cannot create new thread\n", __FUNCTION__ ); 328 vmm_ remove_vseg( vseg);328 vmm_delete_vseg( process->pid , vseg->min ); 329 329 return ENOMEM; 330 330 } … … 348 348 { 349 349 printk("\n[ERROR] in %s : cannot initialize new thread\n", __FUNCTION__ ); 350 vmm_ remove_vseg( vseg);350 vmm_delete_vseg( process->pid , vseg->min ); 351 351 thread_release( thread ); 352 352 return EINVAL; … … 369 369 { 370 370 printk("\n[ERROR] in %s : cannot create CPU context\n", __FUNCTION__ ); 371 vmm_ remove_vseg( vseg);371 vmm_delete_vseg( process->pid , vseg->min ); 372 372 thread_release( thread ); 373 373 return ENOMEM; … … 379 379 { 380 380 printk("\n[ERROR] in %s : cannot create FPU context\n", __FUNCTION__ ); 381 vmm_ remove_vseg( vseg);381 vmm_delete_vseg( process->pid , vseg->min ); 382 382 thread_release( thread ); 383 383 return ENOMEM; … … 538 538 539 539 // register STACK vseg in local child VSL 540 vmm_ vseg_attach( &child_process->vmm , vseg );540 vmm_attach_vseg_to_vsl( &child_process->vmm , vseg ); 541 541 542 542 #if (DEBUG_THREAD_USER_FORK & 1) … … 560 560 if( error ) 561 561 { 562 vmm_vseg_detach( &child_process->vmm , vseg ); 563 vseg_free( vseg ); 562 vmm_detach_vseg_from_vsl( &child_process->vmm , vseg ); 564 563 thread_release( child_ptr ); 565 564 printk("\n[ERROR] in %s : cannot update child GPT\n", __FUNCTION__ );
Note: See TracChangeset
for help on using the changeset viewer.