Re: asm (lidt) question

From: Davide Libenzi (
Date: Tue Jul 22 2003 - 12:54:02 EST

On Tue, 22 Jul 2003, Richard B. Johnson wrote:

> 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.

Indeed, that why this is not really correct :

__asm__ __volatile__("lidt %0": "=m" (var));

even if it generates the same code of :

__asm__ __volatile__("lidt %0": : "m" (var));

- Davide

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:47 EST