linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* asm (lidt) question
@ 2003-07-17 22:28 Randy.Dunlap
  2003-07-17 22:36 ` Davide Libenzi
  0 siblings, 1 reply; 12+ messages in thread
From: Randy.Dunlap @ 2003-07-17 22:28 UTC (permalink / raw)
  To: lkml


In arch/i386/kernel, inline asm for loading IDT (lidt) is used a few
times, but with slightly different constraints and output/input
definitions.  Are these OK, equivalent, or what?

[rddunlap@dragon kernel]$ findc lidt
./cpu/common.c:484: __asm__ __volatile__("lidt %0": "=m" (idt_descr));
./traps.c:783:	__asm__ __volatile__("lidt %0": "=m" (idt_descr));

vs.

./reboot.c:186:	__asm__ __volatile__ ("lidt %0" : : "m" (real_mode_idt));
./reboot.c:261:	__asm__ __volatile__("lidt %0": :"m" (no_idt));
./suspend.c:95:	asm volatile ("lidt %0" :: "m" (saved_context.idt_limit));


Thanks,
--
~Randy  [yes, i've looked at the inline asm docs]
For Linux-2.6:
http://www.codemonkey.org.uk/post-halloween-2.5.txt
  or http://lwn.net/Articles/39901/
http://www.kernel.org/pub/linux/kernel/people/rusty/modules/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-07-22 18:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-17 22:28 asm (lidt) question Randy.Dunlap
2003-07-17 22:36 ` Davide Libenzi
2003-07-17 23:18   ` Davide Libenzi
2003-07-17 23:31     ` Randy.Dunlap
2003-07-17 23:36       ` Davide Libenzi
2003-07-22 17:27     ` Jamie Lokier
2003-07-22 17:31       ` Davide Libenzi
2003-07-22 17:50         ` Richard B. Johnson
2003-07-22 17:54           ` Davide Libenzi
2003-07-22 18:58         ` Randy.Dunlap
2003-07-22 18:58           ` Davide Libenzi
2003-07-22 19:04             ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).