DragonFly bugs List (threaded) for 2007-07
[Date Prev][
Date Next]
[Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
[issue714] SMP kernel panic at boot: assertion: ((int)sr->sysid ..
Thomas Nikolajsen <thomas.nikolajsen@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@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue714>
_____________________________________________________
[Date Prev][
Date Next]
[Thread Prev][
Thread Next]
[
Date Index][
Thread Index]