diff options
author | jb <jb@FreeBSD.org> | 2008-03-27 05:03:26 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2008-03-27 05:03:26 +0000 |
commit | 34e730ca273d9bd38d9081bc80c78688c6abdd4c (patch) | |
tree | fab7e3c1d8d06e5b21f4fddec18bc48b6708d26f /sys/sparc64/include | |
parent | 2a244be0948ebf54f47b701a69bdc0acbc452299 (diff) | |
download | FreeBSD-src-34e730ca273d9bd38d9081bc80c78688c6abdd4c.zip FreeBSD-src-34e730ca273d9bd38d9081bc80c78688c6abdd4c.tar.gz |
When building a kernel module, define MAXCPU the same as SMP so
that modules work with and without SMP.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/param.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h index dd86233..8a1c7df 100644 --- a/sys/sparc64/include/param.h +++ b/sys/sparc64/include/param.h @@ -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 |