When building a kernel module, define MAXCPU the same as SMP so

that modules work with and without SMP.
This commit is contained in:
John Birrell 2008-03-27 05:03:26 +00:00
parent 97dbe5e48e
commit e483943791
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177661
7 changed files with 12 additions and 12 deletions

View File

@ -79,7 +79,7 @@
#define MACHINE_ARCH "amd64"
#endif
#ifdef SMP
#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 16
#else
#define MAXCPU 1

View File

@ -72,11 +72,11 @@
#endif
#define MID_MACHINE MID_ARM6
#ifdef SMP
#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 2
#else
#define MAXCPU 1
#endif /* SMP */
#endif /* SMP || KLD_MODULE */
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)

View File

@ -65,11 +65,11 @@
#endif
#define MID_MACHINE MID_I386
#ifdef SMP
#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 16
#else
#define MAXCPU 1
#endif /* SMP */
#endif /* SMP || KLD_MODULE */
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)

View File

@ -78,7 +78,7 @@
#define MACHINE_ARCH "ia64"
#endif
#ifdef SMP
#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 4
#else
#define MAXCPU 1

View File

@ -67,11 +67,11 @@
#endif
#define MID_MACHINE MID_POWERPC
#ifdef SMP
#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 2
#else
#define MAXCPU 1
#endif /* SMP */
#endif /* SMP || KLD_MODULE */
#define ALIGNBYTES _ALIGNBYTES
#define ALIGN(p) _ALIGN(p)

View File

@ -59,11 +59,11 @@
#endif
#define MID_MACHINE MID_SPARC64
#ifdef SMP
#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 16
#else
#define MAXCPU 1
#endif /* SMP */
#endif /* SMP || KLD_MODULE */
#define INT_SHIFT 2
#define PTR_SHIFT 3

View File

@ -59,11 +59,11 @@
#endif
#define MID_MACHINE MID_SPARC64
#ifdef SMP
#if defined(SMP) || defined(KLD_MODULE)
#define MAXCPU 32
#else
#define MAXCPU 1
#endif /* SMP */
#endif /* SMP || KLD_MODULE */
#define INT_SHIFT 2
#define PTR_SHIFT 3