From patchwork Thu Jul 19 23:51:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 172101 X-Patchwork-Delegate: albert.aribaud@free.fr 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 AA8032C0337 for ; Fri, 20 Jul 2012 09:42:50 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 40AF82809A; Fri, 20 Jul 2012 01:42:49 +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 tPZzUXUJeoXb; Fri, 20 Jul 2012 01:42:49 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 44E6D280AE; Fri, 20 Jul 2012 01:42:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32CD5280AE for ; Fri, 20 Jul 2012 01:42:45 +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 ZiStRwLlstfQ for ; Fri, 20 Jul 2012 01:42:44 +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-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTPS id C947F2809A for ; Fri, 20 Jul 2012 01:42:41 +0200 (CEST) Received: by pbcwy7 with SMTP id wy7so5015653pbc.3 for ; Thu, 19 Jul 2012 16:42:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=GJe3gCJq0BrM3twtwAYXgXszBsHrLbG4DskakvBs2Lc=; b=WGn9ZbakPwSQ9STUpkMLZtqxd7ULhnts6Zo0bcmm0EQumNW8wELk3b1XuXK+CUkW0d en6KblAFkIah4DXk/aS11dzYw1JPjE4jqrPIISuBvtNI6i2gc/Evp45N2LdNj42jty2H psH6zEBGKeISyQAlpa6hVGZCYMcc5lx5XONuHJpAL0ZDTS1STgtOyD5fCMGFRZp8qYj6 rjBcrqnkQzJUkABgH92LX9d7Jev1l2aaG/nL1LzkHss5UymEtMn946UySTJ/9wrFvirF li+fJcn+Wb6B4qCNXRaMrwe+ChAacXbbNLsgZsTmdp5Dqee7JedQyTzslVR9v9z7cwTL U2lw== Received: by 10.68.242.168 with SMTP id wr8mr9041915pbc.44.1342741360299; Thu, 19 Jul 2012 16:42:40 -0700 (PDT) Received: from xps-iwamatsu.renesas.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPS id hf5sm2678868pbc.4.2012.07.19.16.42.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Jul 2012 16:42:39 -0700 (PDT) From: Nobuhiro Iwamatsu To: u-boot@lists.denx.de Date: Fri, 20 Jul 2012 08:51:02 +0900 Message-Id: <1342741863-15200-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Mailer: git-send-email 1.7.10 X-Gm-Message-State: ALoCoQmPLWkUPDsSedfCptBaE4JlyNS3V7lhrCT4YtgzP2QpY5C74Vsvydh/WQ6gluzREmgwxhGr Cc: Nobuhiro Iwamatsu Subject: [U-Boot] [PATCH v2] arm: rmobile: Support build with gcc-4.6 or later 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 Latest rmobile code was tested by using old gcc (gcc-4.4). When we use gcc-4.6 (or later), the build is made, but does not work. This solves a problem not to work by add -march=armv5 to compiple option when we built in gcc-4.6 (or later). I tested by linaro's compiler version 2012.04-20120426. Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: Nobuhiro Iwamatsu --- v2: does not remove wfi orderi, use an instruction code instead. arch/arm/cpu/armv7/rmobile/config.mk | 26 ++++++++++++++++++++++++++ arch/arm/cpu/armv7/rmobile/lowlevel_init.S | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 arch/arm/cpu/armv7/rmobile/config.mk diff --git a/arch/arm/cpu/armv7/rmobile/config.mk b/arch/arm/cpu/armv7/rmobile/config.mk new file mode 100644 index 0000000..1da0227 --- /dev/null +++ b/arch/arm/cpu/armv7/rmobile/config.mk @@ -0,0 +1,26 @@ +# +# (C) Copyright 2002 +# Gary Jennejohn, DENX Software Engineering, +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float + +# Make ARMv5 to allow more compilers to work, even though its v7a. +PLATFORM_CPPFLAGS += -march=armv5 diff --git a/arch/arm/cpu/armv7/rmobile/lowlevel_init.S b/arch/arm/cpu/armv7/rmobile/lowlevel_init.S index 4f2ed02..30bbef0 100644 --- a/arch/arm/cpu/armv7/rmobile/lowlevel_init.S +++ b/arch/arm/cpu/armv7/rmobile/lowlevel_init.S @@ -49,7 +49,7 @@ wait_interrupt: str r2, [r1] wait_loop: - wfi + .long 0xE320F003 /* wfi */ ldr r2, [r1, #0xC] str r2, [r1, #0x10]