summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/booke/pmap.c
diff options
context:
space:
mode:
authorzbb <zbb@FreeBSD.org>2015-07-16 10:46:52 +0000
committerzbb <zbb@FreeBSD.org>2015-07-16 10:46:52 +0000
commitfbdf5266d5ad7412c4ffa2455c7636df844707d7 (patch)
tree3c44716ac42ebbba799b203b7f6302bebec1ae2c /sys/powerpc/booke/pmap.c
parent2b7ab302c306d27e6242e609481f4e18a08e5943 (diff)
downloadFreeBSD-src-fbdf5266d5ad7412c4ffa2455c7636df844707d7.zip
FreeBSD-src-fbdf5266d5ad7412c4ffa2455c7636df844707d7.tar.gz
Fix KSTACK_PAGES issue when the default value was changed in KERNCONF
If KSTACK_PAGES was changed to anything alse than the default, the value from param.h was taken instead in some places and the value from KENRCONF in some others. This resulted in inconsistency which caused corruption in SMP envorinment. Ensure all places where KSTACK_PAGES are used the opt_kstack_pages.h is included. The file opt_kstack_pages.h could not be included in param.h because was breaking the toolchain compilation. Reviewed by: kib Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3094
Diffstat (limited to 'sys/powerpc/booke/pmap.c')
-rw-r--r--sys/powerpc/booke/pmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c
index fc6917f..656b7a3 100644
--- a/sys/powerpc/booke/pmap.c
+++ b/sys/powerpc/booke/pmap.c
@@ -51,6 +51,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_kstack_pages.h"
+
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/malloc.h>
OpenPOWER on IntegriCloud