Re: asm (lidt) question

From: Jamie Lokier (jamie@shareable.org)
Date: Tue Jul 22 2003 - 12:27:22 EST


Davide Libenzi wrote:
> IMHO, since "var" is really an output parameter.

"var" is read, not written.
I think you are confusing "lidt" with "sidt".

Therefore

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

is the better choice, and that's why I wrote it in reboot.c :)

-- Jamie
-
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/



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