From patchwork Mon Aug 20 16:45:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 178882 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 E097D2C00A2 for ; Tue, 21 Aug 2012 02:48:03 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A1DA228523; Mon, 20 Aug 2012 18:47:56 +0200 (CEST) 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 rmHY36zL54+F; Mon, 20 Aug 2012 18:47:56 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 088D12854A; Mon, 20 Aug 2012 18:46:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EEA9B28505 for ; Mon, 20 Aug 2012 18:46:36 +0200 (CEST) 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 2rzzviIogzTm for ; Mon, 20 Aug 2012 18:46:35 +0200 (CEST) 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-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by theia.denx.de (Postfix) with ESMTPS id C161D2850A for ; Mon, 20 Aug 2012 18:46:06 +0200 (CEST) Received: by mail-pz0-f44.google.com with SMTP id r19so2835194dak.3 for ; Mon, 20 Aug 2012 09:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=oI3dHhjq9c+GOmN+txYMDzG2Nc3qk8cSemigAADurj4=; b=zPy2j6Uu1dviIkbjVGXwJUsMt3Wfg6wRMicMEBErWH46YcseHnsV4YQa8hGTdQIIW2 vitlLNlFx1KDQkMD6NPApAjLtgWHN19J0tT/5g/weQB9uKT/qGOHDepL0+zsVWgRfpE8 TkguQmb3zlrINY6ppv6woL22GeBRe7CJ8vMNxhEe5QY3rNquBY/A28OHS0ZwWZg1IVJR auvXwyZ+cGSmsAvmtIurLljs90QEeolV9c9wc5NFHULrGr2kbBkKv+zXQb/Fg7VMB+oo KgbqRwV4p1dYImWfH3OZv8KqHapxP/8poePlyFqqpEcyzGqEeGFQMSCckMMChO1t05Pi m58Q== Received: by 10.66.88.198 with SMTP id bi6mr31013550pab.23.1345481166375; Mon, 20 Aug 2012 09:46:06 -0700 (PDT) Received: from localhost.localdomain (ip68-230-54-74.ph.ph.cox.net. [68.230.54.74]) by mx.google.com with ESMTPS id qn3sm11423096pbc.6.2012.08.20.09.46.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 09:46:05 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Mon, 20 Aug 2012 09:45:43 -0700 Message-Id: <1345481154-7050-9-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345481154-7050-1-git-send-email-trini@ti.com> References: <1345481154-7050-1-git-send-email-trini@ti.com> Cc: Sudhakar Rajashekhara , Christian Riesch Subject: [U-Boot] [PATCH v2 08/18] ARM: SPL: Only call mem_malloc_init if configured 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 We can only attempt to setup a malloc pool if CONFIG_SYS_SPL_MALLOC_START is defined, and not all boards require it. Make the call depend on the define. Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/cpu/armv7/omap-common/spl.c b/arch/arm/cpu/armv7/omap-common/spl.c index 4d33f99..71a467e 100644 --- a/arch/arm/cpu/armv7/omap-common/spl.c +++ b/arch/arm/cpu/armv7/omap-common/spl.c @@ -149,8 +149,10 @@ void board_init_r(gd_t *id, ulong dummy) u32 boot_device; debug(">>spl:board_init_r()\n"); +#ifdef CONFIG_SYS_SPL_MALLOC_START mem_malloc_init(CONFIG_SYS_SPL_MALLOC_START, CONFIG_SYS_SPL_MALLOC_SIZE); +#endif #ifdef CONFIG_SPL_BOARD_INIT spl_board_init();