diff options
author | Martin Storsjö <martin@martin.st> | 2020-05-06 11:27:07 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2020-05-10 08:31:16 +0300 |
commit | 5dd10e9c70f317eee0d5fc4fde419db2878ba2d0 (patch) | |
tree | 4351a74c336bf3eea4f5747876e4f058b219be0e /src | |
parent | 1d16d38d4ee4dccb2a3c9dad2f5be55a2236bd27 (diff) |
arm64: Explicitly forbid using the x18 register
On windows and darwin (and modern android), the x18 register is reserved
and shouldn't be modified by user code, while it is freely available on
linux. Strictly avoid it, to keep the assembly code portable.
Diffstat (limited to 'src')
-rw-r--r-- | src/arm/asm.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arm/asm.S b/src/arm/asm.S index 6b1d46f..f3f44f7 100644 --- a/src/arm/asm.S +++ b/src/arm/asm.S @@ -135,4 +135,9 @@ EXTERN\name: #define X(x) CONCAT(EXTERN, x) +#if ARCH_AARCH64 +#define x18 do_not_use_x18 +#define w18 do_not_use_w18 +#endif + #endif /* DAV1D_SRC_ARM_ASM_S */ |