summaryrefslogtreecommitdiffstats
path: root/sys/arm/cavium/cns11xx
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/arm/cavium/cns11xx
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/arm/cavium/cns11xx')
-rw-r--r--sys/arm/cavium/cns11xx/econa_machdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/cavium/cns11xx/econa_machdep.c b/sys/arm/cavium/cns11xx/econa_machdep.c
index b490535..1532cec 100644
--- a/sys/arm/cavium/cns11xx/econa_machdep.c
+++ b/sys/arm/cavium/cns11xx/econa_machdep.c
@@ -38,6 +38,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_kstack_pages.h"
+
#define _ARM32_BUS_DMA_PRIVATE
#include <sys/param.h>
#include <sys/systm.h>
OpenPOWER on IntegriCloud