From patchwork Tue Nov 11 00:16:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 409110 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 E6E5014010F for ; Tue, 11 Nov 2014 11:17:49 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6374E4B6A1; Tue, 11 Nov 2014 01:17:48 +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 JQbgAsm-T6Jj; Tue, 11 Nov 2014 01:17:48 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B49AB4B69A; Tue, 11 Nov 2014 01:17:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 901CB4B69A for ; Tue, 11 Nov 2014 01:17:42 +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 HRhSWWii0LaU for ; Tue, 11 Nov 2014 01:17:42 +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-oi0-f74.google.com (mail-oi0-f74.google.com [209.85.218.74]) by theia.denx.de (Postfix) with ESMTPS id 3626E4B694 for ; Tue, 11 Nov 2014 01:17:39 +0100 (CET) Received: by mail-oi0-f74.google.com with SMTP id u20so1236983oif.5 for ; Mon, 10 Nov 2014 16:17:37 -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=/IJqiAGwkb3u2EF1UGiZ31EDy3N8BQ/aIhgkX87y43E=; b=c4SVibZFVberXuP5bq2OOGQY4V+R338RxXY8iUoLpwo1skwABQt5m4hxZD8MnLh9sa aHf10sbd8wngU5PMw0zeNmdSBCsJoeIJwUMJlf+idAc7U3x6Zpli1L97cVM3Fc9crLF3 5ToU0L0zFEq4FEBGchyqgqUMDG37ow9+owR105D5HEw7l+2T1pkBUzUL59pQ6/jEStrA mToJHA4O0SoxxgFRT+qdeKKr4hUiLApRMuk8OMHZX9PVtSpjIO0K38fUCmkUVXe/pRdM kg/GmAju3o14MgIeLqvN4JDHEibVbmKNxjw1W3XW5nztod+ak2NS05kigjRO1Pr9OnZt tRNA== X-Gm-Message-State: ALoCoQm/CGUCl/vmjfbkLz7jqcgyPeiBIQX3zl8AxzkkuGubHcsDPYXQo1XIYVwt85IUNajz46Cd X-Received: by 10.50.111.131 with SMTP id ii3mr21770311igb.6.1415665057755; Mon, 10 Nov 2014 16:17:37 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id r6si710579yhg.1.2014.11.10.16.17.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Nov 2014 16:17:37 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id mqqw8CMC.1; Mon, 10 Nov 2014 16:17:37 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id A122F22110E; Mon, 10 Nov 2014 17:17:36 -0700 (MST) From: Simon Glass To: u-boot@lists.denx.de Date: Mon, 10 Nov 2014 17:16:41 -0700 Message-Id: <1415665015-12651-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1415665015-12651-1-git-send-email-sjg@chromium.org> References: <1415665015-12651-1-git-send-email-sjg@chromium.org> Cc: Stephen Warren , Tom Warren Subject: [U-Boot] [PATCH v3 01/14] arm: spl: Avoid setting up a duplicate global data structure 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 This is already set up in crt0.S. We don't need a new structure and don't really want one in the 'data' section of the image, since it will be empty and crt0.S's changes will be ignored. Signed-off-by: Simon Glass Acked-by: Albert ARIBAUD --- Changes in v3: None Changes in v2: None arch/arm/lib/spl.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c index 75ab546..6361a62 100644 --- a/arch/arm/lib/spl.c +++ b/arch/arm/lib/spl.c @@ -13,10 +13,6 @@ #include #include -/* Pointer to as well as the global data structure for SPL */ -DECLARE_GLOBAL_DATA_PTR; -gd_t gdata __attribute__ ((section(".data"))); - /* * In the context of SPL, board_init_f must ensure that any clocks/etc for * DDR are enabled, ensure that the stack pointer is valid, clear the BSS