login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
25
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ARM OABI
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Nicolas Pitre
Subject:
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ARM OABI
Date: Thursday, March 25, 2010 - 9:26 am
On Thu, 25 Mar 2010, Paulius Zaleckas wrote:
quoted text
> We must tell GCC to use even register for variable passed > to ldrd instruction. Without this patch GCC 4.2.1 puts this > variable to r2/r3 on EABI and r3/r4 on OABI, so force it to > r2/r3. This does not change anything when EABI and OABI > compilation works OK. > > Without this patch and with OABI I get: > CC drivers/mtd/nand/orion_nand.o > /tmp/ccMkwOCs.s: Assembler messages: > /tmp/ccMkwOCs.s:63: Error: first destination register must be even -- `ldrd r3,[ip]' > make[5]: *** [drivers/mtd/nand/orion_nand.o] Error 1 > > Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
quoted text
> --- > > drivers/mtd/nand/orion_nand.c | 8 +++++++- > 1 files changed, 7 insertions(+), 1 deletions(-) > > diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c > index f59c074..d60fc57 100644 > --- a/drivers/mtd/nand/orion_nand.c > +++ b/drivers/mtd/nand/orion_nand.c > @@ -60,7 +60,13 @@ static void orion_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) > } > buf64 = (uint64_t *)buf; > while (i < len/8) { > - uint64_t x; > + /* > + * Since GCC has no proper constraint (PR 43518) > + * force x variable to r2/r3 registers as ldrd instruction > + * requires first register to be even. > + */ > + register uint64_t x asm ("r2"); > + > asm volatile ("ldrd\t%0, [%1]" : "=&r" (x) : "r" (io_base)); > buf64[i++] = x; > } >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH v2] MTD: Fix Orion NAND driver compilation with ARM ...
, Paulius Zaleckas
, (Thu Mar 25, 8:25 am)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Nicolas Pitre
, (Thu Mar 25, 9:26 am)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Jamie Lokier
, (Thu Mar 25, 1:46 pm)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Paulius Zaleckas
, (Wed Mar 31, 5:01 am)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Artem Bityutskiy
, (Fri Apr 23, 4:56 am)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Nicolas Pitre
, (Fri Apr 23, 5:54 am)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Artem Bityutskiy
, (Fri Apr 23, 8:13 am)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Nicolas Pitre
, (Fri Apr 23, 10:50 am)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Andrew Morton
, (Fri Apr 23, 11:00 am)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Nicolas Pitre
, (Fri Apr 23, 11:22 am)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Nicolas Pitre
, (Fri Apr 23, 12:06 pm)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Jamie Lokier
, (Fri Apr 23, 7:58 pm)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Jamie Lokier
, (Fri Apr 23, 8:04 pm)
Re: [PATCH v2] MTD: Fix Orion NAND driver compilation with ...
, Nicolas Pitre
, (Sat Apr 24, 6:02 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-fsdevel
:
Aneesh Kumar K.V
[PATCH -V8 6/9] ext4: Add get_fsid callback
Bertram
Bertram has something to show you!
David
Greeting Card from eCardica.com
support
BANESTO INFORMACION IMPORTANTE SOBRE SU SEGURIDAD
Wendy Cheng
Re: [PATCH] prune_icache_sb
linux-usb
:
Albert Herranz
[PATCH v4 08/11] wii: have generic dma coherent
Takahiro Nishikawa
USB3.0 xHCI on powerpc
Greg Kroah-Hartman
[PATCH 036/122] USB: g_file_storage: more code from file_storage.c moved to storag...
Jason Wessel
[PATCH 5/5] usb_debug: EXPERIMENTAL - poll hcd device to force writes
Olivier Bornet
Problem with iuu_phoenix module
linux-activists
:
Paul S. Kilroy
help compiling interviews
Jonathan Magid
x386 sc spreadsheet
Dahai Li
Help on as86?
Stephen Tweedie
Re: Dos6 killed Linux :-(
Gonzo
QIC-80
netbsd-tech-kern
:
Thomas E. Spanjaard
Re: Bad side effect of "newdirpref"
Manuel Bouyer
Re: freebsd 5.99.41 as XEN3_DOMU
Jason Thorpe
Re: Atomic ops API
Jonathan Stone
opencrypto panics when calling AES?
Antti Kantee
Re: Enabling built-in modules earlier in init
openfabrics-general
:
Mahmoud Hanafi
Re: [ofa-general] ofed1.2.5rc2 and intel mpi error
Bart Van Assche
Re: [ofa-general] Infiniband Driver support for Mellanox HCA in Centos 5.3
Ashwath Narasimhan
Re: [ofa-general] Infiniband Driver support for Mellanox HCA in Centos 5.3
Tziporet Koren
Re: [ofa-general] Infiniband Driver support for Mellanox HCA in Centos 5.3
Patrick McHardy
Re: [ofa-general] Re: [PATCH v3 08/13] QLogic VNIC: sysfs interface implementation...
Colocation donated by:
Syndicate