Re: [PATCH v3] arm64: sysreg: make mrs_s and msr_s macros work with Clang and LTO

From: Kees Cook
Date: Tue Apr 23 2019 - 18:55:27 EST


On Mon, Apr 15, 2019 at 7:38 AM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
> +#define __msr_s(r, v) \
> + DEFINE_MSR_S \
> +" msr_s " __stringify(r) ", %x0\n" \
> + UNDEFINE_MSR_S : : "rZ" (v)

BTW ... is "%x0" a typo here? Shouldn't this just be "%0"?

--
Kees Cook