Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 23 Oct 2002 07:54:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 23 Oct 2002 07:54:57 -0400 Received: from chaos.analogic.com ([204.178.40.224]:902 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id ; Wed, 23 Oct 2002 07:54:56 -0400 Date: Wed, 23 Oct 2002 08:02:42 -0400 (EDT) From: "Richard B. Johnson" Reply-To: root@chaos.analogic.com To: David Grothe cc: Linux Kernel Mailing List Subject: Re: I386 cli In-Reply-To: <5.1.0.14.2.20021022145759.02861ec8@localhost> Message-ID: 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: 986 Lines: 29 On Tue, 22 Oct 2002, David Grothe wrote: > In 2.5.41every architecture except Intel 386 has a "#define cli > " in its asm-arch/system.h file. Is there supposed to be such a > define in asm-i386/system.h? If not, where does the "official" definition > of cli() live for Intel? Or what is the include file that one needs to > pick it up? I can't find it. > Thanks, > Dave Grep for 'spin_lock'. You can't just use `cli` alone. It won't protect the critical section. You probably need: spin_lock_irqsave(&lock, flags); //.... critical section spin_unlock_irqrestore(&lock, flags); Cheers, Dick Johnson Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips). Bush : The Fourth Reich of America - 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/