From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270929AbTGVRey (ORCPT ); Tue, 22 Jul 2003 13:34:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270932AbTGVRey (ORCPT ); Tue, 22 Jul 2003 13:34:54 -0400 Received: from chaos.analogic.com ([204.178.40.224]:20352 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id S270929AbTGVRex (ORCPT ); Tue, 22 Jul 2003 13:34:53 -0400 Date: Tue, 22 Jul 2003 13:50:20 -0400 (EDT) From: "Richard B. Johnson" X-X-Sender: root@chaos Reply-To: root@chaos.analogic.com To: Davide Libenzi cc: Jamie Lokier , "Randy.Dunlap" , lkml Subject: Re: asm (lidt) question In-Reply-To: Message-ID: References: <20030717152819.66cfdbaf.rddunlap@osdl.org> <20030722172722.GC3267@mail.jlokier.co.uk> 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 On Tue, 22 Jul 2003, Davide Libenzi wrote: > On Tue, 22 Jul 2003, Jamie Lokier wrote: > > > Davide Libenzi wrote: > > > IMHO, since "var" is really an output parameter. > > > > "var" is read, not written. > > I think you are confusing "lidt" with "sidt". > > Actually I don't even know what I was confusing, since L and S are not > there for nothing ;) And yes, the form with =m as input parameter should > be corrected, even if it generates the same code. > > > > - Davide LIDT is "load interrupt descriptor table". SIDT is "store interrupt descriptor table". Only SIDT modifies memory. LIDT reads from memory and puts the result into a special CPU register, therefore doesn't modify memory. Cheers, Dick Johnson Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips). Note 96.31% of all statistics are fiction.