Changeset 623 for trunk/user/init


Ignore:
Timestamp:
Mar 6, 2019, 4:37:15 PM (6 years ago)
Author:
alain
Message:

Introduce three new types of vsegs (KCODE,KDATA,KDEV)
to map the kernel vsegs in the process VSL and GPT.
This now used by both the TSAR and the I86 architectures.

File:
1 edited

Legend:

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

    r588 r623  
    2626// and avoid the hard_config include [AG]
    2727
    28 // TODO introduce a communication channel between INIT and KSH
    29 // to allow KSH to signal INIT the exec completion.
    30 
    3128////////////////
    3229int main( void )
     
    4037
    4138#if DEBUG_PROCESS_INIT
    42 display_string("[INIT] process enters");
     39display_string("[init] process enters");
    4340#endif
    4441
     
    5956        {
    6057            // INIT display error message 
    61             snprintf( string , 64 , "[INIT ERROR] cannot fork child[%d] => suicide" , i );
     58            snprintf( string , 64 , "[init ERROR] cannot fork child[%d] => suicide" , i );
    6259            display_string( string );
    6360
     
    7471                // CHILD[i] display error message
    7572                snprintf( string , 64 ,
    76                 "[INIT ERROR] CHILD[%d] cannot exec KSH / ret_exec = %d" , i , ret_exec );
     73                "[init ERROR] CHILD[%d] cannot exec KSH / ret_exec = %d" , i , ret_exec );
    7774                display_string( string );
    7875            }
     
    8178        {
    8279            // INIT display CHILD[i] process PID
    83             snprintf( string , 64 , "[INIT] created KSH[%d] / pid = %x", i , ret_fork );
     80            snprintf( string , 64 , "[init] created KSH[%d] / pid = %x", i , ret_fork );
    8481            display_string( string );
    8582
     
    128125        {
    129126            // display string to report unexpected KSH process block
    130             snprintf( string , 64 , "[INIT] KSH process %x stopped => unblock it" , rcv_pid );
     127            snprintf( string , 64 , "[init] KSH process %x stopped => unblock it" , rcv_pid );
    131128            display_string( string );
    132129
     
    138135        {
    139136            // display string to report KSH process termination
    140             snprintf( string , 64 , "[INIT] KSH process %x terminated => recreate", rcv_pid );
     137            snprintf( string , 64 , "[init] KSH process %x terminated => recreate", rcv_pid );
    141138            display_string( string );
    142139
     
    147144            {
    148145                // INIT display error message
    149                 snprintf( string , 64 , "[INIT ERROR] cannot fork child => suicide");
     146                snprintf( string , 64 , "[init ERROR] cannot fork child => suicide");
    150147                display_string( string );
    151148
     
    161158                {
    162159                    // CHILD display error message on TXT0 terminal
    163                     snprintf( string , 64 , "[INIT ERROR] CHILD cannot exec KSH" );
     160                    snprintf( string , 64 , "[init ERROR] CHILD cannot exec KSH" );
    164161                    display_string( string );
    165162                }
     
    168165            {
    169166                // INIT display new KSH process PID
    170                 snprintf( string , 64 , "[INIT] re-created KSH / pid = %x", ret_fork );
     167                snprintf( string , 64 , "[init] re-created KSH / pid = %x", ret_fork );
    171168                display_string( string );
    172169            }
Note: See TracChangeset for help on using the changeset viewer.