+37
−18
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Clang's integrated assembler does not allow assembly macros defined in one inline asm block using the .macro directive to be used across separate asm blocks. LLVM developers consider this a feature and not a bug, recommending code refactoring: https://bugs.llvm.org/show_bug.cgi?id=19749 As binutils doesn't allow macros to be redefined, this change uses UNDEFINE_MRS_S and UNDEFINE_MSR_S to define corresponding macros in-place and workaround gcc and clang limitations on redefining macros across different assembler blocks. Bug: 62093296 Bug: 67506682 Change-Id: I803fff57f639b0921ef81f90ec4befe802e7eecf (am from https://patchwork.kernel.org/patch/10060343/ ) Signed-off-by:Alex Matveev <alxmtvv@gmail.com> Signed-off-by:
Yury Norov <ynorov@caviumnetworks.com> Signed-off-by:
Sami Tolvanen <samitolvanen@google.com>