Re: [tip:x86/pti] x86/entry/64: Introduce the PUSH_AND_CLEAN_REGS macro

From: Linus Torvalds
Date: Mon Feb 12 2018 - 11:51:12 EST


On Mon, Feb 12, 2018 at 5:29 AM, Denys Vlasenko <dvlasenk@xxxxxxxxxx> wrote:
>
> xorq's are slower than xorl's on Silvermont/Knights Landing.
> I propose using xorl instead.

Makes sense, and matches the other 'xorl'.

I suspect the only reason it uses 'xorq' for the high regs is that the
register names for the high regs are "odd" and don't match the legacy
register names. You need to use "%r15d'" for the 32-bit version.

Linus