Skip to content

Instantly share code, notes, and snippets.

@jmgao
Created February 20, 2019 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmgao/6b6e673f1c8d6a3abf62c109d48b32d4 to your computer and use it in GitHub Desktop.
Save jmgao/6b6e673f1c8d6a3abf62c109d48b32d4 to your computer and use it in GitHub Desktop.
test.integrated.o: file format elf32-littlearm
Disassembly of section .text:
00000000 <_Z5flushv>:
0: b0a1 sub sp, #132 ; 0x84
2: 2000 movs r0, #0
4: 9020 str r0, [sp, #128] ; 0x80
6: e85d 0f80 ldrex r0, [sp, #512] ; 0x200
a: b110 cbz r0, 12 <_Z5flushv+0x12>
c: f3bf 8f2f clrex
10: e007 b.n 22 <_Z5flushv+0x22>
12: 4668 mov r0, sp
14: f3bf 8f5b dmb ish
18: 3080 adds r0, #128 ; 0x80
1a: 2101 movs r1, #1
1c: e840 1200 strex r2, r1, [r0]
20: 2a00 cmp r2, #0
22: f3bf 8f5b dmb ish
26: b021 add sp, #132 ; 0x84
28: 4770 bx lr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment