aboutsummaryrefslogtreecommitdiff
path: root/sys/ddb/db_ps.c
diff options
context:
space:
mode:
authorZbigniew Bodek <zbb@FreeBSD.org>2015-07-16 10:46:52 +0000
committerZbigniew Bodek <zbb@FreeBSD.org>2015-07-16 10:46:52 +0000
commit721555e7ee6944b0f632833322ff2e605e57b51a (patch)
tree3c44716ac42ebbba799b203b7f6302bebec1ae2c /sys/ddb/db_ps.c
parent1038d102c45f85100654325933ec11e170699b45 (diff)
downloadsrc-721555e7ee6944b0f632833322ff2e605e57b51a.tar.gz
src-721555e7ee6944b0f632833322ff2e605e57b51a.zip
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
Notes
Notes: svn path=/head/; revision=285627
Diffstat (limited to 'sys/ddb/db_ps.c')
-rw-r--r--sys/ddb/db_ps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c
index 3fc7afe5e225..553c22e9e4a9 100644
--- a/sys/ddb/db_ps.c
+++ b/sys/ddb/db_ps.c
@@ -30,6 +30,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_kstack_pages.h"
+
#include <sys/param.h>
#include <sys/cons.h>
#include <sys/jail.h>