public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* OMAP3: Warning: swp{b} use is deprecated for this architecture
@ 2010-12-16 11:49 Jean Pihet
  2010-12-16 11:56 ` Russell King - ARM Linux
  0 siblings, 1 reply; 10+ messages in thread
From: Jean Pihet @ 2010-12-16 11:49 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

The following warning is issued by the compiler (gcc version 4.4.1
(Sourcery G++ Lite 2010q1-202):
arch/arm/mach-omap2/sleep34xx.S:87: Warning: swp{b} use is deprecated
for this architecture

Does this need fixing? If so any hint on how to do it?

Here is the offending code excerpt:

wait_sem:
        mov     r0,#1
        ldr     r1, sdrc_scratchpad_sem
wait_loop:
        ldr     r2, [r1]        @ load the lock value
        cmp     r2, r0          @ is the lock free ?
        beq     wait_loop       @ not free...
        swp     r2, r0, [r1]    @ semaphore free so lock it and proceed
        cmp     r2, r0          @ did we succeed ?
        beq     wait_sem        @ no - try again

Regards,
Jean

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-12-17 13:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-16 11:49 OMAP3: Warning: swp{b} use is deprecated for this architecture Jean Pihet
2010-12-16 11:56 ` Russell King - ARM Linux
2010-12-16 12:47   ` Catalin Marinas
2010-12-16 14:39     ` Jean Pihet
2010-12-16 17:05       ` Will Deacon
     [not found]       ` <6188477658179778436@unknownmsgid>
2010-12-16 17:16         ` Jean Pihet
2010-12-16 20:04           ` Dave Martin
2010-12-16 20:10             ` Russell King - ARM Linux
2010-12-16 21:44               ` Jean Pihet
2010-12-17 13:20                 ` Dave Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox