diff options
author | peter <peter@FreeBSD.org> | 2003-07-31 01:31:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-07-31 01:31:32 +0000 |
commit | 1c887bc40fa682bacdb7a897d6588ad0ab458f57 (patch) | |
tree | fd8f42d79e6d1965a558b0e0fdcd15747424002a /sys/sparc64 | |
parent | 19f0a8f822a4fc1d098faf83c461c9105441a7a7 (diff) | |
download | FreeBSD-src-1c887bc40fa682bacdb7a897d6588ad0ab458f57.zip FreeBSD-src-1c887bc40fa682bacdb7a897d6588ad0ab458f57.tar.gz |
Deal with 'options KSTACK_PAGES' being a global option.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/include/param.h | 2 | ||||
-rw-r--r-- | sys/sparc64/sparc64/genassym.c | 2 | ||||
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 1 | ||||
-rw-r--r-- | sys/sparc64/sparc64/pmap.c | 1 | ||||
-rw-r--r-- | sys/sparc64/sparc64/vm_machdep.c | 1 |
5 files changed, 7 insertions, 0 deletions
diff --git a/sys/sparc64/include/param.h b/sys/sparc64/include/param.h index 7ee6360..8a9726c 100644 --- a/sys/sparc64/include/param.h +++ b/sys/sparc64/include/param.h @@ -104,7 +104,9 @@ #define PAGE_SIZE_MAX PAGE_SIZE_4M #define PAGE_MASK_MAX PAGE_MASK_4M +#ifndef KSTACK_PAGES #define KSTACK_PAGES 4 /* pages of kernel stack (with pcb) */ +#endif #define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ #define UAREA_PAGES 1 /* pages of user area */ #define PCPU_PAGES 1 diff --git a/sys/sparc64/sparc64/genassym.c b/sys/sparc64/sparc64/genassym.c index 6360b84..ffa3c47 100644 --- a/sys/sparc64/sparc64/genassym.c +++ b/sys/sparc64/sparc64/genassym.c @@ -27,6 +27,8 @@ * $FreeBSD$ */ +#include "opt_kstack_pages.h" + #include <sys/param.h> #include <sys/assym.h> #include <sys/errno.h> diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index aead2a4..7bd1451 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -42,6 +42,7 @@ #include "opt_compat.h" #include "opt_ddb.h" +#include "opt_kstack_pages.h" #include "opt_msgbuf.h" #include <sys/param.h> diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index d884220..29441cd 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -63,6 +63,7 @@ * correct. */ +#include "opt_kstack_pages.h" #include "opt_msgbuf.h" #include "opt_pmap.h" diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index 5b4b9ab..884b55f 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -43,6 +43,7 @@ * $FreeBSD$ */ +#include "opt_kstack_pages.h" #include "opt_pmap.h" #include <sys/param.h> |