SMP in machine/params.h
- From: Pietro Cerutti <gahr@xxxxxxx>
- Date: Thu, 24 Jan 2008 13:38:39 +0100
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?
uname -aFreeBSD gahrtop.localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #23: Tue Jan
22 00:15:05 CET 2008
root@xxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/MSI1034 i386
sysctl kern.smp.active kern.smp.maxcpuskern.smp.active: 1
kern.smp.maxcpus: 16
cat smp.c
#include <sys/param.h>
#ifndef SMP
# error SMP not defined
#endif
make smpcc -O2 -pipe -march=pentiumpro smp.c -o smp
smp.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 $?1
Any idea?
--
Pietro Cerutti
PGP Public Key:
http://gahr.ch/pgp
Attachment:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- Re: SMP in machine/params.h
- From: John Baldwin
- Re: SMP in machine/params.h
- From: Pietro Cerutti
- Re: SMP in machine/params.h
- Prev by Date: Re: Hardware support for AMD Geode CS5536 audio?
- Next by Date: Re: FreeBSD hacker 101
- Previous by thread: FreeBSD hacker 101
- Next by thread: Re: SMP in machine/params.h
- Index(es):
Relevant Pages
|
|