[issue714] SMP kernel panic at boot: assertion: ((int)sr->sysid ..

Thomas Nikolajsen sinknull at crater.dragonflybsd.org
Sat Jun 30 20:13:30 PDT 2007


Thomas Nikolajsen <thomas.nikolajsen at mail.dk> added the comment:

I looked into this: sprinkling kprintf's around:
gd_sysid_alloc==1 and gd_cpuid==0 when sysres_init which panics is called.

It turns out that problem is that ncpus isn't fixed for SMP:
it's initialized to 1 and later changed to number of CPUs.
(in /sys/platform/pc32/i386/mp_machdep.c)

sysref_ctor is called once while ncpus==1.

Simple fix (hack?) is to initialize ncpus to MAXCPU,
and set ncpus* accordingly.

 -thomas

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue714>
_____________________________________________________






More information about the Bugs mailing list