attilio 2010-08-09 00:23:57 UTC
FreeBSD src repository
SVN rev 211087 on 2010-08-09 00:23:57Z by attilio
The r208165 fixed a bug related to unsigned integer overflowing for the
number of CPUs detection.
However, that was not mention at all, the problem was not reported, the
patch has not been MFCed and the fix is mostly improper.
Fix the original overflow (caused when 32 CPUs must be detected) by
just using a different mathematical computation (it also makes more
explicit the size of operands involved, which is good in the moment
waiting for a more complete support for a large number of CPUs).
Submitted by: Joe Landers <jlanders at vmware dot com>
Tested by: gianni
MFC after: 10 days
Revision Changes Path
1.221 +1 -4 src/sys/kern/subr_smp.c