Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
30 lines
978 B
C
30 lines
978 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_ARM_COMPILER_H
|
|
#define __ASM_ARM_COMPILER_H
|
|
|
|
/*
|
|
* This is used to ensure the compiler did actually allocate the register we
|
|
* asked it for some inline assembly sequences. Apparently we can't trust
|
|
* the compiler from one version to another so a bit of paranoia won't hurt.
|
|
* This string is meant to be concatenated with the inline asm string and
|
|
* will cause compilation to stop on mismatch.
|
|
* (for details, see gcc PR 15089)
|
|
* For compatibility with clang, we have to specifically take the equivalence
|
|
* of 'r11' <-> 'fp' and 'r12' <-> 'ip' into account as well.
|
|
*/
|
|
#define __asmeq(x, y) \
|
|
".ifnc " x "," y "; " \
|
|
".ifnc " x y ",fpr11; " \
|
|
".ifnc " x y ",r11fp; " \
|
|
".ifnc " x y ",ipr12; " \
|
|
".ifnc " x y ",r12ip; " \
|
|
".err; " \
|
|
".endif; " \
|
|
".endif; " \
|
|
".endif; " \
|
|
".endif; " \
|
|
".endif\n\t"
|
|
|
|
|
|
#endif /* __ASM_ARM_COMPILER_H */
|