Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 8 Mar 2002 19:04:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 8 Mar 2002 19:03:56 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:28935 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Fri, 8 Mar 2002 19:03:48 -0500 To: linux-kernel@vger.kernel.org From: "H. Peter Anvin" Subject: Re: [PATCH] Futexes IV (Fast Lightweight Userspace Semaphores) Date: 8 Mar 2002 16:03:33 -0800 Organization: Transmeta Corporation, Santa Clara CA Message-ID: In-Reply-To: <20020308231405.CADDC3FE06@smtp.linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Disclaimer: Not speaking for Transmeta in any way, shape, or form. Copyright: Copyright 2002 H. Peter Anvin - All Rights Reserved Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Followup to: By author: Linus Torvalds In newsgroup: linux.dev.kernel > > You don't understand. This has nothing to do with lock holders, or > anything else. > > I'm saying that we map in a page at a magic offset (just above the stack), > and that page contains the locking code. > > For 386 CPU's (where only UP matters), we can trivially come up with a > lock that doesn't use cmpxchg8b and that isn't SMP-safe. It might even go > into the kernel every time if it has to - ie it _works_, it just isn't > optimal. > Okay, I'll say it and be impopular... Perhaps it's time to drop i386 support? It seems to me that the i386 support has been around mostly on a "until we have a reason to do otherwise" basis, but perhaps this is the reason? There certainly are enough little, nagging reasons... CMPXCHG, BSWAP, and especially WP... -hpa -- at work, in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt - 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/