Re: [PATCH v2 10/30] Add x86-specific parity functions
From: Borislav Petkov
Date: Thu Apr 14 2016 - 20:10:33 EST
On Mon, Apr 11, 2016 at 10:43:32AM +0800, Zeng Zhaoxiu wrote:
> I don't know where the errors. X86 is new to me.
Ok, let me try again by pasting here the relevant text from the manual:
"Parity Flag (PF). Bit 2. Hardware sets the parity flag to 1 if there
is an even number of 1 bits in the least-significant byte of the last
result of certain operations. Otherwise (i.e., for an odd number of 1
bits), hardware clears the flag to 0. Software can read the flag to
implement parity checking."
--
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--