Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932200AbVKWTDt (ORCPT ); Wed, 23 Nov 2005 14:03:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932198AbVKWTDs (ORCPT ); Wed, 23 Nov 2005 14:03:48 -0500 Received: from smtp.osdl.org ([65.172.181.4]:10714 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S932200AbVKWTDr (ORCPT ); Wed, 23 Nov 2005 14:03:47 -0500 Date: Wed, 23 Nov 2005 11:03:15 -0800 (PST) From: Linus Torvalds To: "Jeff V. Merkey" cc: "H. Peter Anvin" , Alan Cox , Andi Kleen , Gerd Knorr , Dave Jones , Zachary Amsden , Pavel Machek , Andrew Morton , Linux Kernel Mailing List , Zwane Mwaikambo , Pratap Subrahmanyam , Christopher Li , "Eric W. Biederman" , Ingo Molnar Subject: Re: [patch] SMP alternatives In-Reply-To: <4384A63E.6030706@wolfmountaingroup.com> Message-ID: References: <4378A7F3.9070704@suse.de> <4379ECC1.20005@suse.de> <437A0649.7010702@suse.de> <437B5A83.8090808@suse.de> <438359D7.7090308@suse.de> <1132764133.7268.51.camel@localhost.localdomain> <20051123163906.GF20775@brahms.suse.de> <1132766489.7268.71.camel@localhost.localdomain> <4384AECC.1030403@zytor.com> <4384A63E.6030706@wolfmountaingroup.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 997 Lines: 26 On Wed, 23 Nov 2005, Jeff V. Merkey wrote: > > The lock prefix '0F' is used for a lot of opcodes other than "lock". Go check > the instruction set reference. No it's not. 0F is indeed the two-byte prefix. But lock is F0, and it's unique. Sometimes Intel re-uses the prefixes for other things eg "rep nop", but I don't think that has ever happened for the lock prefix. Besides, the instructions look very different internally in the CPU after decoding, and anyway you'd not want to ignore the lock prefix _early_ at decode time anyway (many instructions turn into illegal instructions with a lock prefix, as do reg-reg modrm bytes). So you'd dismiss the lock prefix not at a byte level, but at a minimum just after the decode stage. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/