Changeset 14949


Ignore:
Timestamp:
Aug 22, 2011, 11:58:06 AM (9 years ago)
Author:
gb
Message:

Don't use deprecated SWP instruction in atomic_swap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/arm-asmutils.s

    r14549 r14949  
    8989_exportfn(C(atomic_swap))
    9090        __(mov r2,r0)
    91         __(swp r0,r1,[r2])
     910:      __(ldrex r0,[r2])
     92        __(strex r3,r1,[r2]
     93        __(cmp r3,#0)
     94        __(bne 0b)       
    9295        __(bx lr)
    9396_endfn
Note: See TracChangeset for help on using the changeset viewer.