mirror of
https://github.com/memtest86plus/memtest86plus
synced 2025-03-13 17:33:14 +03:00
Guard against an AP starting more than once.
This commit is contained in:
parent
e37fbbd429
commit
13efd906f1
@ -424,7 +424,14 @@ void main(void)
|
||||
my_cpu = smp_my_cpu_num();
|
||||
}
|
||||
if (init_state < 2 && my_cpu > 0) {
|
||||
if (cpu_state[my_cpu] == CPU_STATE_RUNNING) {
|
||||
enable_trace = true;
|
||||
trace(my_cpu, "started more than once");
|
||||
}
|
||||
cpu_state[my_cpu] = CPU_STATE_RUNNING;
|
||||
while (init_state < 2) {
|
||||
usleep(10);
|
||||
}
|
||||
}
|
||||
BARRIER;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user