Re: git: 4f2465260f03 - main - SYSINIT: add SI_SUB_FIRST

From: Gleb Smirnoff <glebius_at_freebsd.org>
Date: Tue, 25 Aug 2026 19:20:04 UTC
On Fri, Aug 21, 2026 at 01:31:34PM +0000, Bjoern A. Zeeb wrote:
B> >    SYSINIT: add SI_SUB_FIRST
B> > 
B> >    This allows to initialize mp_maxid, mp_ncpus and register APICs at the
B> >    most early stage, guaranteeing that those values will already be available
B> >    at SI_SUB_TUNABLES.
B> > 
B> >    Reviewed by:            markj
B> >    Differential Revision:  https://reviews.freebsd.org/D58712
...
B> > @@ -94,6 +94,7 @@ extern volatile long ticksl;
B> >  */
B> > enum sysinit_sub_id {
B> > 	SI_SUB_DUMMY		= 0x0000000,	/* not executed; for linker */
B> > +	SI_SUB_FIRST		= 0x0600000,	/* mp_maxid, etc... */
B> 
B> Are we expecting a SI_SUB_PRE_FIRST one day or why did we not put it on 1 but 6?
B> It seems more likely there'll be something between FIRST and TUNABLE/COPYRIGHT one
B> day than before FIRST?

The name comes from Mark, I was initially more specific about the name. See
history in https://reviews.freebsd.org/D58712.

-- 
Gleb Smirnoff