From owner-svn-src-all@freebsd.org Thu Jul 16 10:47:01 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A36D39A34AB; Thu, 16 Jul 2015 10:47:01 +0000 (UTC) (envelope-from zbb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F2B814AC; Thu, 16 Jul 2015 10:47:01 +0000 (UTC) (envelope-from zbb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6GAl1wb028815; Thu, 16 Jul 2015 10:47:01 GMT (envelope-from zbb@FreeBSD.org) Received: (from zbb@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6GAkrEt028784; Thu, 16 Jul 2015 10:46:53 GMT (envelope-from zbb@FreeBSD.org) Message-Id: <201507161046.t6GAkrEt028784@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zbb set sender to zbb@FreeBSD.org using -f From: Zbigniew Bodek Date: Thu, 16 Jul 2015 10:46:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285627 - in head/sys: arm/arm arm/at91 arm/cavium/cns11xx arm/samsung/s3c2xx0 arm/xscale/i80321 arm/xscale/i8134x arm/xscale/ixp425 arm/xscale/pxa arm64/arm64 ddb i386/i386 powerpc/boo... X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 10:47:01 -0000 Author: zbb Date: Thu Jul 16 10:46:52 2015 New Revision: 285627 URL: https://svnweb.freebsd.org/changeset/base/285627 Log: 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 Modified: head/sys/arm/arm/machdep.c head/sys/arm/at91/at91_machdep.c head/sys/arm/cavium/cns11xx/econa_machdep.c head/sys/arm/samsung/s3c2xx0/s3c24x0_machdep.c head/sys/arm/xscale/i80321/ep80219_machdep.c head/sys/arm/xscale/i80321/iq31244_machdep.c head/sys/arm/xscale/i8134x/crb_machdep.c head/sys/arm/xscale/ixp425/avila_machdep.c head/sys/arm/xscale/pxa/pxa_machdep.c head/sys/arm64/arm64/locore.S head/sys/arm64/arm64/mp_machdep.c head/sys/arm64/arm64/swtch.S head/sys/ddb/db_ps.c head/sys/ddb/db_sym.c head/sys/i386/i386/locore.s head/sys/powerpc/booke/pmap.c head/sys/sparc64/sparc64/exception.S head/sys/sparc64/sparc64/stack_machdep.c head/sys/sparc64/sparc64/support.S head/sys/x86/xen/pv.c Modified: head/sys/arm/arm/machdep.c ============================================================================== --- head/sys/arm/arm/machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm/arm/machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -44,6 +44,7 @@ #include "opt_compat.h" #include "opt_ddb.h" +#include "opt_kstack_pages.h" #include "opt_platform.h" #include "opt_sched.h" #include "opt_timer.h" Modified: head/sys/arm/at91/at91_machdep.c ============================================================================== --- head/sys/arm/at91/at91_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm/at91/at91_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -43,6 +43,7 @@ * Created : 17/09/94 */ +#include "opt_kstack_pages.h" #include "opt_platform.h" #include Modified: head/sys/arm/cavium/cns11xx/econa_machdep.c ============================================================================== --- head/sys/arm/cavium/cns11xx/econa_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm/cavium/cns11xx/econa_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -38,6 +38,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #define _ARM32_BUS_DMA_PRIVATE #include #include Modified: head/sys/arm/samsung/s3c2xx0/s3c24x0_machdep.c ============================================================================== --- head/sys/arm/samsung/s3c2xx0/s3c24x0_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm/samsung/s3c2xx0/s3c24x0_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -44,6 +44,7 @@ */ #include "opt_ddb.h" +#include "opt_kstack_pages.h" #include __FBSDID("$FreeBSD$"); Modified: head/sys/arm/xscale/i80321/ep80219_machdep.c ============================================================================== --- head/sys/arm/xscale/i80321/ep80219_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm/xscale/i80321/ep80219_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -48,6 +48,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #define _ARM32_BUS_DMA_PRIVATE #include #include Modified: head/sys/arm/xscale/i80321/iq31244_machdep.c ============================================================================== --- head/sys/arm/xscale/i80321/iq31244_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm/xscale/i80321/iq31244_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -48,6 +48,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #define _ARM32_BUS_DMA_PRIVATE #include #include Modified: head/sys/arm/xscale/i8134x/crb_machdep.c ============================================================================== --- head/sys/arm/xscale/i8134x/crb_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm/xscale/i8134x/crb_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -48,6 +48,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #define _ARM32_BUS_DMA_PRIVATE #include #include Modified: head/sys/arm/xscale/ixp425/avila_machdep.c ============================================================================== --- head/sys/arm/xscale/ixp425/avila_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm/xscale/ixp425/avila_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -48,6 +48,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #define _ARM32_BUS_DMA_PRIVATE #include #include Modified: head/sys/arm/xscale/pxa/pxa_machdep.c ============================================================================== --- head/sys/arm/xscale/pxa/pxa_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm/xscale/pxa/pxa_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -46,6 +46,7 @@ */ #include "opt_ddb.h" +#include "opt_kstack_pages.h" #include __FBSDID("$FreeBSD$"); Modified: head/sys/arm64/arm64/locore.S ============================================================================== --- head/sys/arm64/arm64/locore.S Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm64/arm64/locore.S Thu Jul 16 10:46:52 2015 (r285627) @@ -27,6 +27,7 @@ */ #include "assym.s" +#include "opt_kstack_pages.h" #include #include #include @@ -51,8 +52,6 @@ * We are loaded at a 2MiB aligned address */ -#define INIT_STACK_SIZE (PAGE_SIZE * 4) - .text .globl _start _start: Modified: head/sys/arm64/arm64/mp_machdep.c ============================================================================== --- head/sys/arm64/arm64/mp_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm64/arm64/mp_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -28,6 +28,7 @@ * */ +#include "opt_kstack_pages.h" #include "opt_platform.h" #include Modified: head/sys/arm64/arm64/swtch.S ============================================================================== --- head/sys/arm64/arm64/swtch.S Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/arm64/arm64/swtch.S Thu Jul 16 10:46:52 2015 (r285627) @@ -30,6 +30,7 @@ */ #include "assym.s" +#include "opt_kstack_pages.h" #include "opt_sched.h" #include Modified: head/sys/ddb/db_ps.c ============================================================================== --- head/sys/ddb/db_ps.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/ddb/db_ps.c Thu Jul 16 10:46:52 2015 (r285627) @@ -30,6 +30,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #include #include #include Modified: head/sys/ddb/db_sym.c ============================================================================== --- head/sys/ddb/db_sym.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/ddb/db_sym.c Thu Jul 16 10:46:52 2015 (r285627) @@ -31,6 +31,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #include #include #include Modified: head/sys/i386/i386/locore.s ============================================================================== --- head/sys/i386/i386/locore.s Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/i386/i386/locore.s Thu Jul 16 10:46:52 2015 (r285627) @@ -41,6 +41,7 @@ #include "opt_bootp.h" #include "opt_compat.h" +#include "opt_kstack_pages.h" #include "opt_nfsroot.h" #include "opt_pmap.h" Modified: head/sys/powerpc/booke/pmap.c ============================================================================== --- head/sys/powerpc/booke/pmap.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/powerpc/booke/pmap.c Thu Jul 16 10:46:52 2015 (r285627) @@ -51,6 +51,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #include #include #include Modified: head/sys/sparc64/sparc64/exception.S ============================================================================== --- head/sys/sparc64/sparc64/exception.S Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/sparc64/sparc64/exception.S Thu Jul 16 10:46:52 2015 (r285627) @@ -58,6 +58,7 @@ __FBSDID("$FreeBSD$"); #include "opt_compat.h" #include "opt_ddb.h" +#include "opt_kstack_pages.h" #include #include Modified: head/sys/sparc64/sparc64/stack_machdep.c ============================================================================== --- head/sys/sparc64/sparc64/stack_machdep.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/sparc64/sparc64/stack_machdep.c Thu Jul 16 10:46:52 2015 (r285627) @@ -27,6 +27,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #include #include #include Modified: head/sys/sparc64/sparc64/support.S ============================================================================== --- head/sys/sparc64/sparc64/support.S Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/sparc64/sparc64/support.S Thu Jul 16 10:46:52 2015 (r285627) @@ -27,6 +27,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_kstack_pages.h" + #include #include Modified: head/sys/x86/xen/pv.c ============================================================================== --- head/sys/x86/xen/pv.c Thu Jul 16 10:22:57 2015 (r285626) +++ head/sys/x86/xen/pv.c Thu Jul 16 10:46:52 2015 (r285627) @@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$"); #include "opt_ddb.h" +#include "opt_kstack_pages.h" #include #include