Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 22 Oct 2002 16:40:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 22 Oct 2002 16:40:46 -0400 Received: from twilight.ucw.cz ([195.39.74.230]:39587 "EHLO twilight.ucw.cz") by vger.kernel.org with ESMTP id ; Tue, 22 Oct 2002 16:40:45 -0400 Date: Tue, 22 Oct 2002 22:46:44 +0200 From: Vojtech Pavlik To: erich@uruk.org Cc: David Grothe , Linux Kernel Mailing List Subject: Re: I386 cli Message-ID: <20021022224644.A25463@ucw.cz> References: <5.1.0.14.2.20021022145759.02861ec8@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from erich@uruk.org on Tue, Oct 22, 2002 at 01:08:43PM -0700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1050 Lines: 26 On Tue, Oct 22, 2002 at 01:08:43PM -0700, erich@uruk.org wrote: > 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. > > I'm sure there is no definition because "cli" is the native assembler > instruction on x86. Wrong reason. Furthermore, cli(), meaning 'global interrupt disable, across all processors', is not doable with a single instruction anyway. It's not defined, because it should not be used - usually the usage of cli() means a bug. -- Vojtech Pavlik SuSE Labs - 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/