From patchwork Fri Jan 9 03:30:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 426897 X-Patchwork-Delegate: sjg@chromium.org 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 7738314012F for ; Fri, 9 Jan 2015 14:31:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 358D84B608; Fri, 9 Jan 2015 04:31:39 +0100 (CET) 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 HVhy0jhO9rP5; Fri, 9 Jan 2015 04:31:38 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D2ECF4B5FA; Fri, 9 Jan 2015 04:31:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 943454B608 for ; Fri, 9 Jan 2015 04:31:33 +0100 (CET) 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 3fVAE3JqOhs9 for ; Fri, 9 Jan 2015 04:31:33 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ie0-f201.google.com (mail-ie0-f201.google.com [209.85.223.201]) by theia.denx.de (Postfix) with ESMTPS id 3AA584B5FA for ; Fri, 9 Jan 2015 04:31:29 +0100 (CET) Received: by mail-ie0-f201.google.com with SMTP id rp18so1836594iec.0 for ; Thu, 08 Jan 2015 19:31:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LfwaBlRtCERkJcRP6W4NPKxS+yMF8QFwmQPjBr1GA54=; b=Ol8qPnyh/WDJT6BxmS+/MqeGZ313bQd28Vfh+X9f5pIfbqkflLVlhLiqFriVcgdXpe ImMvHyiBHu0CHHAVX+G2jtlfOsUieGRrcIGhTrnROq4NN8232MiXDfqM2yBIE0/hChPm MqGogfFL8FGNKBJ0OYKWhLCfIWon/ahfwWJDEg8QG0rzkx1Ay21wm2/r7xMCv9m0dHGB VuDt46tMKedd/2URaj3yWHspIUfmDF1zbaMUlB4zKvdju54ABMqzIS4t/cg2LMEz394/ VxcFzCwULf+5+0joELfdIFKohM13m2/JGm+plcdh+8ZAQQKcgv90yubZZBQEUxG89WB8 mhig== X-Gm-Message-State: ALoCoQnwfF0/XkR3JlpYaxUr5kzilrpfysPSpXH2hhdEFqICcyMQjtmQa8HPRSOoS2bWRdV03jLS X-Received: by 10.43.78.198 with SMTP id zn6mr10274098icb.12.1420774288473; Thu, 08 Jan 2015 19:31:28 -0800 (PST) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id c44si282319yhc.5.2015.01.08.19.31.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jan 2015 19:31:28 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id 9p1qRYfM.1; Thu, 08 Jan 2015 19:31:28 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 8C50922080D; Thu, 8 Jan 2015 20:31:27 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 8 Jan 2015 20:30:50 -0700 Message-Id: <1420774255-702-7-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1420774255-702-1-git-send-email-sjg@chromium.org> References: <1420774255-702-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v2 06/11] Allow architecture-specific memory reservation X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 All memory to be reserved for use after relocation by adding a new call to perform this reservation. Signed-off-by: Simon Glass --- Changes in v2: None common/board_f.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/board_f.c b/common/board_f.c index 3a4b32c..215108b 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -807,6 +807,12 @@ static int initf_dm(void) return 0; } +/* Architecture-specific memory reservation */ +__weak int reserve_arch(void) +{ + return 0; +} + static init_fnc_t init_sequence_f[] = { #ifdef CONFIG_SANDBOX setup_ram_buf, @@ -970,6 +976,7 @@ static init_fnc_t init_sequence_f[] = { setup_machine, reserve_global_data, reserve_fdt, + reserve_arch, reserve_stacks, setup_dram_config, show_dram_config,