Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 2016 09:45:43 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        John Baldwin <jhb@freebsd.org>, arch@freebsd.org
Subject:   Re: Starting APs earlier during boot
Message-ID:  <41149.1455702343@critter.freebsd.dk>
In-Reply-To: <20160217094241.GF91220@kib.kiev.ua>
References:  <1730061.8Ii36ORVKt@ralph.baldwin.cx> <20160217094241.GF91220@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
In message <20160217094241.GF91220@kib.kiev.ua>, Konstantin Belousov writes:

>E.g. there might be no interrupts set up yet, and idle thread on UP
>gets on CPU, then the whole boot process could deadlock.

idle_thread:

	while (!interrupts_setup_done())
		yield();

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41149.1455702343>