changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / sys/src/ape/lib/ap/arm64/tas.s

changeset 7190: 41fb44a3b2dc
author: cinap_lenrek@felloff.net
date: Fri, 03 May 2019 21:06:46 +0200
permissions: -rw-r--r--
description: ape: initial support for arm64
1 TEXT tas(SB), 1, $-4
2  MOVW $1, R2
3 _tas1:
4  LDXRW (R0), R1
5  STXRW R2, (R0), R3
6  CBNZ R3, _tas1
7  MOVW R1, R0
8 
9 TEXT _barrier(SB), 1, $-4
10  DMB $0xB // ISH
11  RETURN