PC-BSD/trueos 5a73059sys/kern kern_environment.c subr_hints.c

kern_environment: Fix SYSINIT ordering

The dynamic environment was being initialized at SI_SUB_KMEM, SI_ORDER_ANY.
I added the hint-merging at SI_SUB_KMEM, SI_ORDER_ANY as well in r335998 -
this can only work by coincidence.

Re-do both to operate at SI_SUB_KMEM + 1, SI_ORDER_FIRST and SI_ORDER_SECOND
respectively to be safe. It's sufficiently obfuscated away as to when in
SU_SUB_KMEM malloc will be available, and the dynamic environment cannot be
relied upon there anyways since it's initialized at SI_ORDER_ANY.

Reported by:    bde
Discussed with: bde
X-MFC-With: r335998
DeltaFile
+1-1sys/kern/kern_environment.c
+1-1sys/kern/subr_hints.c
+2-22 files

UnifiedSplitRaw