Quantcast
Channel: lkml.org : Shesha Sreenivasamurthy
Viewing all articles
Browse latest Browse all 1267

Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier

$
0
0
Linus Torvalds writes: (Summary) yeah, that's exactly where we want to make sure that the compiler uses a select or 'setb'.
uses a select or 'setb'.
That's what gcc does for me in testing:
That's what gcc does for me in testing:
xorl %eax, %eax
setbe %al
negq %rax
negq %rax
but yes, we'd need to guarantee it somehow.
but yes, we'd need to guarantee it somehow.
Presumably that is where we end up having some arch-specific stuff.

Viewing all articles
Browse latest Browse all 1267

Trending Articles