From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758654Ab2CIS2z (ORCPT ); Fri, 9 Mar 2012 13:28:55 -0500 Received: from s15943758.onlinehome-server.info ([217.160.130.188]:42320 "EHLO mail.x86-64.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758549Ab2CIS2x (ORCPT ); Fri, 9 Mar 2012 13:28:53 -0500 Date: Fri, 9 Mar 2012 19:28:29 +0100 From: Borislav Petkov To: Kees Cook Cc: "H. Peter Anvin" , Ingo Molnar , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , x86@kernel.org, Andy Lutomirski , Hidetoshi Seto , Andrew Morton , Mike Frysinger , Steven Rostedt , Peter Zijlstra Subject: Re: [PATCH] x86: use enum instead of literals for trap values Message-ID: <20120309182829.GA13745@aftab> References: <20120309074202.GA28609@www.outflux.net> <20120309092845.GA10281@elte.hu> <4F5A448D.70605@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 09, 2012 at 10:21:52AM -0800, Kees Cook wrote: > > I have to admit personally to prefer something like X86_XCP_XX where XX > > is the two-letter code that the Intel documentation uses for that trap, > > i.e. #GP, #BR, #MC and so on. > > We need a single person to decide on this bike shed color. :) If the > list of enum names can be agreed on, I'll be happy to do the > search/replace for it. Well, here are my 2¢: I agree with hpa because a) it maps the CPU vendor documentation b) it is nicely short Thanks. -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach GM: Alberto Bozzo Reg: Dornach, Landkreis Muenchen HRB Nr. 43632 WEEE Registernr: 129 19551