From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Date: Mon, 27 Oct 2008 14:34:49 +0000 Subject: Re: [PATCH 00/12] x86: Cleanup idt, gdt/ldt/tss structs Message-Id: <4905D189.9080306@zytor.com> List-Id: References: <1224904532-9586-1-git-send-email-ice799@gmail.com> <20081027105559.GA13895@elte.hu> In-Reply-To: <20081027105559.GA13895@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ingo Molnar Cc: Joe Damato , linux-x86_64@vger.kernel.org, linux-newbie@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Jeremy Fitzhardinge , Vegard Nossum Ingo Molnar wrote: > > Small detail, the syntactic form you chose: > > + if (!cpu->arch.idt[num].p) > > is not very readable because it's not obvious at first sight that ".p" > intends to mean "present bit". If then idt[num].present would have > been the better choice - but it's even better to not do bitfields at > all but an idt_present(desc *) helper inline function. > There is, however, some benefit to use the field names that are in the official documentation, which include P. -hpa