Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752961AbcDOAKa (ORCPT ); Thu, 14 Apr 2016 20:10:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:54777 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752316AbcDOAK3 (ORCPT ); Thu, 14 Apr 2016 20:10:29 -0400 Date: Fri, 15 Apr 2016 04:11:02 +0200 From: Borislav Petkov To: Zeng Zhaoxiu Cc: One Thousand Gnomes , zengzhaoxiu@163.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, dvlasenk@redhat.com, akpm@linux-foundation.org, dvyukov@google.com, keescook@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 10/30] Add x86-specific parity functions Message-ID: <20160415021102.GB2700@cz.tnic> References: <57031D9D.801@gmail.com> <1459934085-7152-1-git-send-email-zengzhaoxiu@163.com> <20160406101300.GA13719@pd.tnic> <20160406113737.0b73bb40@lxorguk.ukuu.org.uk> <570B0F54.7060201@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <570B0F54.7060201@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 625 Lines: 17 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) --