]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86: Wait for curthread to be set up as an indicator that the boot stack
authorkib <kib@FreeBSD.org>
Mon, 20 Jan 2020 17:23:03 +0000 (17:23 +0000)
committerkib <kib@FreeBSD.org>
Mon, 20 Jan 2020 17:23:03 +0000 (17:23 +0000)
commit85db09767d01918c8417cbea82be1ff475aeca5c
tree3b4538651a0dd702db9090918f4a7a6497226e4c
parentc617035a0677ac96e0a4c354249c7682dddb1835
x86: Wait for curthread to be set up as an indicator that the boot stack
is no longer used.

pc_curthread is set by cpu_switch after it stopped using the old
thread (or boot) stack.  This makes the smp_after_idle_runnable()
function not dependent on the internals of the scheduler operations.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D23276
sys/x86/x86/mp_x86.c