25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_mp.c,v 1.34 2006/02/09 20:02:59 debug Exp $ |
* $Id: dev_mp.c,v 1.36 2006/05/04 19:49:25 debug Exp $ |
29 |
* |
* |
30 |
* This is a fake multiprocessor (MP) device. It can be useful for |
* This is a fake multiprocessor (MP) device. It can be useful for |
31 |
* theoretical experiments, but probably bares no resemblance to any |
* theoretical experiments, but probably bares no resemblance to any |
42 |
#include "machine.h" |
#include "machine.h" |
43 |
#include "memory.h" |
#include "memory.h" |
44 |
#include "misc.h" |
#include "misc.h" |
45 |
#include "mp.h" |
|
46 |
|
#include "testmachine/dev_mp.h" |
47 |
|
|
48 |
|
|
49 |
struct mp_data { |
struct mp_data { |
121 |
break; |
break; |
122 |
|
|
123 |
case DEV_MP_PAUSE_CPU: |
case DEV_MP_PAUSE_CPU: |
124 |
/* Pause all cpus except our selves: */ |
/* Pause all cpus except a specific CPU: */ |
125 |
which_cpu = idata; |
which_cpu = idata; |
126 |
|
|
127 |
for (i=0; i<cpu->machine->ncpus; i++) |
for (i=0; i<cpu->machine->ncpus; i++) |