Changes in kernel/arch/sparc64/src/smp/sun4v/smp.c [a35b458:1b20da0] in mainline
- File:
-
- 1 edited
-
kernel/arch/sparc64/src/smp/sun4v/smp.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/smp/sun4v/smp.c
ra35b458 r1b20da0 359 359 if (__hypercall_fast1(CPU_STOP, cpuid) != EOK) 360 360 return false; 361 361 362 362 /* wait for the CPU to stop */ 363 363 uint64_t state; … … 365 365 while (state == CPU_STATE_RUNNING) 366 366 __hypercall_fast_ret1(cpuid, 0, 0, 0, 0, CPU_STATE, &state); 367 367 368 368 /* make the CPU run again and execute HelenOS code */ 369 369 if (__hypercall_fast4(CPU_START, cpuid, … … 372 372 return false; 373 373 #endif 374 374 375 375 if (waitq_sleep_timeout(&ap_completion_wq, 10000000, 376 376 SYNCH_FLAGS_NONE, NULL) == ETIMEOUT) 377 377 printf("%s: waiting for processor (cpuid = %" PRIu64 ") timed out\n", 378 378 __func__, cpuid); 379 379 380 380 return true; 381 381 }
Note:
See TracChangeset
for help on using the changeset viewer.
