mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-04 01:50:38 +00:00
10 lines
146 B
ArmAsm
10 lines
146 B
ArmAsm
|
.section .tdata
|
||
|
var:
|
||
|
.word 2
|
||
|
.text
|
||
|
mrs x1, tpidr_el0
|
||
|
adrp x0, :gottprel:var
|
||
|
ldr x0, [x0, #:gottprel_lo12:var]
|
||
|
add x0, x1, x0
|
||
|
ldr w0, [x0]
|