/[rtmk]/rtmk/processor.c
ViewVC logotype

Diff of /rtmk/processor.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by jrydberg, Thu Jan 3 01:46:01 2002 UTC revision 1.4 by jrydberg, Mon Jan 7 01:16:21 2002 UTC
# Line 24  Foundation, Inc., 59 Temple Place - Suit Line 24  Foundation, Inc., 59 Temple Place - Suit
24  /* Global variable that tells us how many cpu's we have detected.  */  /* Global variable that tells us how many cpu's we have detected.  */
25  int ncpus = 1;  int ncpus = 1;
26    
27    /* Global variable that tells us which CPU is the master CPU.  */
28    int master_cpu = 0;
29    
30  struct processor processor_array [NCPUS];  struct processor processor_array [NCPUS];
31    
32  /* Initialize processor array.  */  /* Initialize processor array.  */
# Line 35  processor_init (void) Line 38  processor_init (void)
38    
39    /* The bootstrap processor is always running (at start).  */    /* The bootstrap processor is always running (at start).  */
40    PROCESSOR_CURRENT()->state = PROCESSOR_STATE_RUNNING;    PROCESSOR_CURRENT()->state = PROCESSOR_STATE_RUNNING;
41      master_cpu = CPU_CURRENT ();
42  }  }
43    
44  /* Idle thread function.  Does nothing right now.    /* Idle thread function.  Does nothing right now.  

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26