Changeset 13725
- Timestamp:
- May 22, 2010, 6:49:53 PM (15 years ago)
- File:
-
- 1 edited
-
branches/arm/lisp-kernel/arm-asmutils.s (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/arm/lisp-kernel/arm-asmutils.s
r13687 r13725 15 15 16 16 17 17 .syntax unified 18 .arm 18 19 19 20 include(lisp.s) … … 25 26 __(mov r2,#0) /* options. Pass as 0 until we know better */ 26 27 __(mov r12,r7) /* preserve r7 ; r12 saved by syscall */ 27 __(mov r7, 0x0f0000) /* __ARM_NR_cacheflush */28 __(mov r7,#0x0f0000) /* __ARM_NR_cacheflush */ 28 29 __(add r7,r7,#2) 29 30 __(svc #0) … … 33 34 34 35 _exportfn(C(current_stack_pointer)) 35 __(m rr0,sp)36 __(mov r0,sp) 36 37 __(bx lr) 37 38 _endfn … … 39 40 _exportfn(C(count_leading_zeros)) 40 41 __(clz r0,r0) 41 __(bx lr 42 __(bx lr) 42 43 _endfn 43 44 … … 81 82 82 83 _exportfn(C(atomic_swap)) 83 __(swp r0,r1,[r0]) 84 __(mov r2,r0) 85 __(swp r0,r1,[r2]) 84 86 __(bx lr) 85 87 _endfn … … 89 91 90 92 _exportfn(C(atomic_ior)) 91 __(sync)92 1: __(lrarx(r5,0,r3))93 __(or r6,r4,r5)94 __(strcx(r6,0,r3))95 __(bne- 1b)96 __(isync)97 __(and r3,r4,r5)98 __(blr)93 dnl __(sync) 94 dnl 1: __(lrarx(r5,0,r3)) 95 dnl __(or r6,r4,r5) 96 dnl __(strcx(r6,0,r3)) 97 dnl __(bne- 1b) 98 dnl __(isync) 99 dnl __(and r3,r4,r5) 100 dnl __(blr) 99 101 _endfn 100 102 … … 104 106 105 107 _exportfn(C(atomic_and)) 106 __(sync)107 1: __(lrarx(r5,0,r3))108 __(and r6,r4,r5)109 __(strcx(r6,0,r3))110 __(bne- 1b)111 __(isync)112 __(mr r3,r6)113 __(blr)108 dnl __(sync) 109 dnl 1: __(lrarx(r5,0,r3)) 110 dnl __(and r6,r4,r5) 111 dnl __(strcx(r6,0,r3)) 112 dnl __(bne- 1b) 113 dnl __(isync) 114 dnl __(mr r3,r6) 115 dnl __(blr) 114 116 _endfn 115 117 … … 133 135 134 136 135 _endfn136 137 137 138
Note:
See TracChangeset
for help on using the changeset viewer.
