ncpus2 must be initialized to 1 in the UP case. ncpus2_mask and ncpus2_shift
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 9 Mar 2004 18:05:27 +0000 (18:05 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 9 Mar 2004 18:05:27 +0000 (18:05 +0000)
commitc5cc06e3d08005dee10342feb4b2219c77a12f0e
tree6092ffadeeb70151ce6d5b66406e8613f8b8151d
parent43ea9bb1d27773b5193f69cca8ab4291bd665269
ncpus2 must be initialized to 1 in the UP case.  ncpus2_mask and ncpus2_shift
remain 0 in the UP case (cpu selection mask for one cpu always selects cpu #0).
This fixes a bug introduced by recent network commits, correcting a boot-time
panic on UP systems in in_pcblookup_hash().
sys/i386/i386/machdep.c
sys/platform/pc32/i386/machdep.c