From patchwork Tue Dec 21 18:12:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 76309 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 A2ED1B70A9 for ; Wed, 22 Dec 2010 05:13:24 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E7E16281C5; Tue, 21 Dec 2010 19:13:15 +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 fgUTNXgZvHVb; Tue, 21 Dec 2010 19:13:15 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 53B2C28194; Tue, 21 Dec 2010 19:13:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0AA3228179 for ; Tue, 21 Dec 2010 19:13:07 +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 Q4-3bkmfTF7T for ; Tue, 21 Dec 2010 19:13:04 +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-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by theia.denx.de (Postfix) with ESMTP id CC4B02817A for ; Tue, 21 Dec 2010 19:13:04 +0100 (CET) Received: by mail-bw0-f46.google.com with SMTP id 15so4855270bwz.33 for ; Tue, 21 Dec 2010 10:13:04 -0800 (PST) Received: by 10.204.51.65 with SMTP id c1mr4174578bkg.185.1292955184446; Tue, 21 Dec 2010 10:13:04 -0800 (PST) Received: from localhost ([178.23.216.97]) by mx.google.com with ESMTPS id j11sm4407546bka.0.2010.12.21.10.13.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 10:13:03 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Tue, 21 Dec 2010 19:12:57 +0100 Message-Id: <1292955178-13018-2-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1292955178-13018-1-git-send-email-monstr@monstr.eu> References: <1292955178-13018-1-git-send-email-monstr@monstr.eu> Subject: [U-Boot] [PATCH 2/3] Autogenerate GENERATED_BD_INFO_SIZE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 GENERATED_BD_INFO_SIZE represent sizeof bd_info structure which is used across architectures. This value can be used in assembler files and macros. Signed-off-by: Michal Simek --- lib/asm-offsets.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c index f1af7e2..8aba391 100644 --- a/lib/asm-offsets.c +++ b/lib/asm-offsets.c @@ -24,6 +24,7 @@ int main (void) /* Round up to make sure size gives nice stack alignment */ DEFINE (GENERATED_GBL_DATA_SIZE, (sizeof (struct global_data) + 15) & ~15); + DEFINE (GENERATED_BD_INFO_SIZE, (sizeof (struct bd_info) + 15) & ~15); return 0; }