Changeset 442 for trunk/user/init/init.c


Ignore:
Timestamp:
May 16, 2018, 4:13:12 PM (6 years ago)
Author:
alain
Message:

Introduce idbg application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/init/init.c

    r441 r442  
    1818#include <pthread.h>
    1919
    20 #define DEBUG_INIT_PROCESS 1
     20#define DEBUG_PROCESS_INIT    0
    2121
    2222// TODO make the cxy computation portable [AG]
     
    2727{
    2828    int           i;
    29     int           delay;
    3029    int           ret_fork;      // fork return value 
    3130    int           ret_exec;      // exec return value 
     
    7069             snprintf( string , 64 , "[INIT] created KSH[%d] / pid = %x", i , ret_fork );
    7170             display_string( string );
    72 
    73              // INIT wait a fixed delay between two forks
    74              for( delay = 0 ; delay < 50000 ; delay++ ) asm volatile( "nop" );
    7571        }
    7672    }
    7773 
    78 #if DEBUG_INIT_PROCESS
     74#if DEBUG_PROCESS_INIT
    7975
    8076    unsigned int  x_size;        // number of clusters in a row
     
    154150            else                                       // we are in INIT process
    155151            {
    156                 // INIT display new CHILD process PID
    157                 snprintf( string , 64 , "[INIT] forked CHILD / pid = %x", ret_fork );
     152                // INIT display new KSH process PID
     153                snprintf( string , 64 , "[INIT] re-created KSH / pid = %x", ret_fork );
    158154                display_string( string );
    159155            }
    160156        } // end KSH kill handling
    161157
    162 #if DEBUG_INIT_PROCESS
     158#if DEBUG_PROCESS_INIT
    163159
    164160        // INIT displays processes and threads in all clusters
Note: See TracChangeset for help on using the changeset viewer.