Deal with 'options KSTACK_PAGES' being a global option.

This commit is contained in:
Peter Wemm 2003-07-31 01:31:32 +00:00
parent aac6412bcd
commit ad7a226f9d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118239
20 changed files with 34 additions and 2 deletions

View file

@ -92,6 +92,7 @@ __FBSDID("$FreeBSD$");
#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_kstack_pages.h"
#include "opt_msgbuf.h"
#include "opt_maxmem.h"

View file

@ -27,6 +27,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/ktr.h>

View file

@ -69,6 +69,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>

View file

@ -117,7 +117,9 @@
#define SSIZE 1 /* initial stack size/NBPG */
#define SINCR 1 /* increment of stack/NBPG */
#ifndef KSTACK_PAGES
#define KSTACK_PAGES 2 /* pages of kstack (with pcb) */
#endif
#define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */
#define UAREA_PAGES 1 /* pages of u-area */

View file

@ -26,6 +26,8 @@
* $FreeBSD$
*/
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/ktr.h>

View file

@ -67,6 +67,8 @@
* rights to redistribute these changes.
*/
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>

View file

@ -134,7 +134,9 @@
#define SSIZE 1 /* initial stack size/NBPG */
#define SINCR 1 /* increment of stack/NBPG */
#ifndef KSTACK_PAGES
#define KSTACK_PAGES 4 /* pages of kernel stack */
#endif
#define KSTACK_GUARD_PAGES 0 /* pages of kstack guard; 0 disables */
#define UAREA_PAGES 1 /* pages of u-area */

View file

@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
#include "opt_ddb.h"
#include "opt_compat.h"
#include "opt_kstack_pages.h"
#include "opt_msgbuf.h"
#include <sys/param.h>

View file

@ -114,6 +114,8 @@ __FBSDID("$FreeBSD$");
* correct.
*/
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/ktr.h>

View file

@ -67,6 +67,8 @@
* rights to redistribute these changes.
*/
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>

View file

@ -97,10 +97,10 @@
#define KERNBASE 0x100000 /* start of kernel virtual */
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)
#ifndef KSTACK_UPAGES
#ifndef KSTACK_PAGES
#define KSTACK_PAGES 4 /* includes pcb */
#define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */
#endif
#define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */
#define USPACE (KSTACK_PAGES * PAGE_SIZE) /* total size of pcb */
#define UAREA_PAGES 1 /* holds struct user WITHOUT PCB */

View file

@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
#include "opt_ddb.h"
#include "opt_compat.h"
#include "opt_kstack_pages.h"
#include "opt_msgbuf.h"
#include <sys/param.h>

View file

@ -114,6 +114,8 @@ __FBSDID("$FreeBSD$");
* correct.
*/
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/ktr.h>

View file

@ -114,6 +114,8 @@ __FBSDID("$FreeBSD$");
* correct.
*/
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/ktr.h>

View file

@ -67,6 +67,8 @@
* rights to redistribute these changes.
*/
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>

View file

@ -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

View file

@ -27,6 +27,8 @@
* $FreeBSD$
*/
#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/assym.h>
#include <sys/errno.h>

View file

@ -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>

View file

@ -63,6 +63,7 @@
* correct.
*/
#include "opt_kstack_pages.h"
#include "opt_msgbuf.h"
#include "opt_pmap.h"

View file

@ -43,6 +43,7 @@
* $FreeBSD$
*/
#include "opt_kstack_pages.h"
#include "opt_pmap.h"
#include <sys/param.h>