Changeset 438 for trunk/user/init


Ignore:
Timestamp:
Apr 4, 2018, 2:49:02 PM (7 years ago)
Author:
alain
Message:

Fix a bug in scheduler related to RPC blocking.

File:
1 edited

Legend:

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

    r437 r438  
    2323int main()
    2424{
    25     int     i;
    26     int     ret_fork;      // fork return value 
    27     int     ret_exec;      // fork return value 
    28     int     rcv_pid;       // pid received from the wait syscall
    29     int     status;        // used by the wait syscall
    30     char    string[64];
     25    int           i;
     26    int           delay;
     27    int           ret_fork;      // fork return value 
     28    int           ret_exec;      // exec return value 
     29    int           rcv_pid;       // pid received from the wait syscall
     30    int           status;        // used by the wait syscall
     31    char          string[64];    // log messages on kernel TXT0
    3132
    3233    // check number of TXT channels
     
    6667             snprintf( string , 64 , "INIT created KSH[%d] / pid = %x", i , ret_fork );
    6768             display_string( string );
     69
     70             // INIT wait a fixed delay between two forks
     71             for( delay = 0 ; delay < 50000 ; delay++ ) asm volatile( "nop" );
    6872        }
    6973    }
    7074
    71 // display processes and threads in clusters 0 & 1
     75// INIT display processes and threads in clusters 0 & 1
    7276display_cluster_processes( 0 );
    7377display_sched( 0 , 0 );
     
    128132                display_string( string );
    129133            }
    130         }  // end KSH kill handling
    131     }
     134        } // end KSH kill handling
     135
     136// INIT wait a fixed delay
     137for( delay = 0 ; delay < 50000 ; delay++ ) asm volatile( "nop" );
     138
     139// INIT display processes and threads in clusters 0 & 1
     140display_cluster_processes( 0 );
     141display_sched( 0 , 0 );
     142display_cluster_processes( 1 );
     143display_sched( 1 , 0 );
     144
     145    }  // end while waiting KSH[i] termination
    132146
    133147} // end main()
Note: See TracChangeset for help on using the changeset viewer.