From patchwork Mon Dec 9 18:08:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 299143 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 90A472C008F for ; Tue, 10 Dec 2013 05:09:17 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DDE70A7836; Mon, 9 Dec 2013 19:09:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pZRt+NKAaj02; Mon, 9 Dec 2013 19:09:14 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6DC04A779B; Mon, 9 Dec 2013 19:08:50 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C3BF5A76BB for ; Mon, 9 Dec 2013 19:08:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XxGqVRJ--+PL for ; Mon, 9 Dec 2013 19:08:37 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-qe0-f41.google.com (mail-qe0-f41.google.com [209.85.128.41]) by theia.denx.de (Postfix) with ESMTPS id 6893AA74E3 for ; Mon, 9 Dec 2013 19:08:29 +0100 (CET) Received: by mail-qe0-f41.google.com with SMTP id gh4so3225732qeb.0 for ; Mon, 09 Dec 2013 10:08:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=m6e4zdJMzSJD7MJJUFxYIwMeIuTyqP7fVoLeRP9u0GQ=; b=c1U+f9jk+Xfg2kCRxm+xw2iHTT4M1awmmm9KMDTiRkB0fomhOhK7Trgvnv2MKwpPOU 64sME8Rv5N5CbeGpmqtjBqQAB7MlpPxbryvMeLzYkrJnPJtFyD8G2qjbgEf43Z9q7DHL ZTQSXHfkvYtG1IHyWUZTWgF7+VaNErILMvPjD4MPbij4wx9dJqre7CiWcXi7Lif2hb4z AAf2OglFjNLAYxxP/gsUGfkFtpCnRdSbh/i+8ibucBtypHMLo4fxBbI9J4RqtEU2pGL4 I1/nVOitmQKAVGl1cLdtmAPdmtVm0YgX55s1oOiB1CrkxwWEAIlVHAzd04Gkt+Ir3SEV P1iA== X-Received: by 10.224.28.72 with SMTP id l8mr36030675qac.35.1386612508768; Mon, 09 Dec 2013 10:08:28 -0800 (PST) Received: from localhost.localdomain (cpe-174-106-216-211.ec.res.rr.com. [174.106.216.211]) by mx.google.com with ESMTPSA id hb2sm32083216qeb.6.2013.12.09.10.08.27 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Dec 2013 10:08:27 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Mon, 9 Dec 2013 13:08:47 -0500 Message-Id: <1386612538-11186-2-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1386612538-11186-1-git-send-email-trini@ti.com> References: <1386612538-11186-1-git-send-email-trini@ti.com> Subject: [U-Boot] [PATCH v2 01/12] TI:armv7: Change CONFIG_SPL_STACK to not be CONFIG_SYS_INIT_SP_ADDR X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de There are times where we may need more than a few kilobytes of stack space. We also will not be using CONFIG_SPL_STACK location prior to DDR being initialized (CONFIG_SYS_INIT_SP_ADDR is still used there) so pick a good location within DDR for this to be. Tested on OMAP4/AM335x/OMAP5/DRA7xx. Signed-off-by: Tom Rini --- include/configs/ti_armv7_common.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h index 99b60fc..4d09ad9 100644 --- a/include/configs/ti_armv7_common.h +++ b/include/configs/ti_armv7_common.h @@ -176,14 +176,17 @@ /* * Place the image at the start of the ROM defined image space. - * We limit our size to the ROM-defined downloaded image area, and use the - * rest of the space for stack. We load U-Boot itself into memory at - * 0x80800000 for legacy reasons (to not conflict with older SPLs). We - * have our BSS be placed 1MiB after this, to allow for the default - * Linux kernel address of 0x80008000 to work, in the Falcon Mode case. - * We have the SPL malloc pool at the end of the BSS area. + * We limit our size to the ROM-defined downloaded image area, and use + * the rest of the space for a temporary stack space. We reserve 4MiB + * between the malloc space at device tree space (for Falcon Mode) for + * SPL stack as some operations may use a large amount of spsce. We + * load U-Boot itself into memory at 0x80800000 for legacy reasons (to + * not conflict with older SPLs). We have our BSS be placed 2MiB after + * this, to allow for the default Linux kernel address of 0x80008000 to + * work, in the Falcon Mode case. We have the SPL malloc pool at the + * end of the BSS area. */ -#define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR +#define CONFIG_SPL_STACK 0x80e80000 #define CONFIG_SYS_TEXT_BASE 0x80800000 #define CONFIG_SPL_BSS_START_ADDR 0x80a00000 #define CONFIG_SPL_BSS_MAX_SIZE 0x80000 /* 512 KB */