From: Christian Groessler (cpg@aladdin.de)
Date: Wed 06 Jan 1999 - 12:31:49 IST
>Now the question: > >how do I give a specific address in asm >I want something like __asm__ ("sgdt &base") >it does work with "sgdt 12345678", but how do I put there a variable? Hmm, I have a similar function, I once needed for sidt: void store_idt(struct idt *idt) { asm ("sidt %0" : : "m" (*idt)); } It will accept a pointer to where to store the idt-pointer. It should work in a similar fashion for sgdt.... regards, chris
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:22 IST