mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-20 07:14:26 +01:00
When building a kernel module, define MAXCPU the same as SMP so
that modules work with and without SMP.
This commit is contained in:
parent
97dbe5e48e
commit
e483943791
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177661
@ -79,7 +79,7 @@
|
||||
#define MACHINE_ARCH "amd64"
|
||||
#endif
|
||||
|
||||
#ifdef SMP
|
||||
#if defined(SMP) || defined(KLD_MODULE)
|
||||
#define MAXCPU 16
|
||||
#else
|
||||
#define MAXCPU 1
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -78,7 +78,7 @@
|
||||
#define MACHINE_ARCH "ia64"
|
||||
#endif
|
||||
|
||||
#ifdef SMP
|
||||
#if defined(SMP) || defined(KLD_MODULE)
|
||||
#define MAXCPU 4
|
||||
#else
|
||||
#define MAXCPU 1
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user