Skip to content
Snippets Groups Projects
Commit 93d0cdaa authored by John Hodge's avatar John Hodge
Browse files

Kernel/ARMv7 - Hacky (non-atomic) sync_and_fetch_4

parent 5b99c972
Branches
No related merge requests found
...@@ -82,3 +82,11 @@ __divmod32_asm: ...@@ -82,3 +82,11 @@ __divmod32_asm:
pop {r4} pop {r4}
mov pc, lr mov pc, lr
.globl __sync_fetch_and_and_4
__sync_fetch_and_and_4:
mov r2, r0
ldr r0, [r2]
mov r3, r0
and r3, r1
str r3, [r2]
mov pc, lr
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment