Pietro Cerutti
2008-01-24 12:38:39 UTC
Hello,
I'm running a Core2Duo on CURRENT, SMP kernel, but somehow the macro SMP
in machine/param.h 1.81 2006/01/09 line 68 is not defined, thus MAXCPU
is defined to 1. Any idea why?
22 00:15:05 CET 2008
kern.smp.maxcpus: 16
#ifndef SMP
# error SMP not defined
#endif
smp.c:5:3: error: #error SMP not defined
*** Error code 1
#include <stdio.h>
int main(void)
{
return (MAXCPU);
}
Any idea?
I'm running a Core2Duo on CURRENT, SMP kernel, but somehow the macro SMP
in machine/param.h 1.81 2006/01/09 line 68 is not defined, thus MAXCPU
is defined to 1. Any idea why?
uname -a
FreeBSD gahrtop.localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #23: Tue Jan22 00:15:05 CET 2008
sysctl kern.smp.active kern.smp.maxcpus
kern.smp.active: 1kern.smp.maxcpus: 16
cat smp.c
#include <sys/param.h>#ifndef SMP
# error SMP not defined
#endif
make smp
cc -O2 -pipe -march=pentiumpro smp.c -o smpsmp.c:5:3: error: #error SMP not defined
*** Error code 1
cat maxcpu.c
#include <sys/param.h>#include <stdio.h>
int main(void)
{
return (MAXCPU);
}
./maxcpu; echo $?
1Any idea?
--
Pietro Cerutti
PGP Public Key:
http://gahr.ch/pgp
Pietro Cerutti
PGP Public Key:
http://gahr.ch/pgp