Commit | Line | Data |
---|---|---|
a06ea964 NC |
1 | .global var |
2 | .section .tdata | |
3 | var: | |
4 | .word 2 | |
5 | .text | |
6 | adrp x0, :tlsdesc:var | |
7 | ldr x1, [x0, #:tlsdesc_lo12:var] | |
8 | add x0, x0, :tlsdesc_lo12:var | |
9 | .tlsdesccall var | |
10 | blr x1 | |
11 | mrs x1, tpidr_el0 | |
12 | add x0, x1, x0 | |
13 | ldr w0, [x0] |