Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2008 14:28:24 +0100
From:      Pietro Cerutti <gahr@gahr.ch>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   [Fwd: SMP in machine/params.h]
Message-ID:  <47989278.6050802@gahr.ch>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigBE811D1FE021F15724DDD0ED
Content-Type: multipart/mixed; boundary="------------010909030109070303020500"

This is a multi-part message in MIME format.
--------------010909030109070303020500
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable



-------- Original Message --------
Subject: SMP in machine/params.h
Date: Thu, 24 Jan 2008 13:38:39 +0100
From: Pietro Cerutti <gahr@gahr.ch>
To: freebsd-hackers@freebsd.org

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 -a
FreeBSD gahrtop.localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #23: Tue Jan
22 00:15:05 CET 2008
root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034  i386

> sysctl kern.smp.active kern.smp.maxcpus
kern.smp.active: 1
kern.smp.maxcpus: 16

> cat smp.c

#include <sys/param.h>

#ifndef SMP
# error SMP not defined
#endif


> make smp
cc -O2 -pipe -march=3Dpentiumpro  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?

--=20
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



--=20
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp

--------------010909030109070303020500
Content-Type: application/pgp-signature;
 name="signature.asc"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="signature.asc"

LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC43IChG
cmVlQlNEKQoKaUQ4REJRRkhtSWJYd01KcW1KVng5NDRSQ29FZkFKOTNPUU90V3dqM3NOQlNC
N2E0NTdmaWlBZ0o5QUNncDhzQwpsL3VJNnlORUduaURTVWVlV0lWdnZzUT0KPU1SSHcKLS0t
LS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tCgo=
--------------010909030109070303020500--

--------------enigBE811D1FE021F15724DDD0ED
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHmJJ8wMJqmJVx944RCk2EAJ44N0J7GLkAHkU/ECbsPs/MHUAPeACfR1C4
p9SlaCKD4E5cI6WKgkv5+cc=
=AaOJ
-----END PGP SIGNATURE-----

--------------enigBE811D1FE021F15724DDD0ED--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47989278.6050802>