You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
aarch64: 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.
This would have helped catch the issue fixed in 872790b1f9
immediately.
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -112,3 +112,6 @@ ELF .size \name, . - \name
|
|||||||
#define GLUE(a, b) a ## b
|
#define GLUE(a, b) a ## b
|
||||||
#define JOIN(a, b) GLUE(a, b)
|
#define JOIN(a, b) GLUE(a, b)
|
||||||
#define X(s) JOIN(EXTERN_ASM, s)
|
#define X(s) JOIN(EXTERN_ASM, s)
|
||||||
|
|
||||||
|
#define x18 do_not_use_x18
|
||||||
|
#define w18 do_not_use_w18
|
||||||
|
Reference in New Issue
Block a user