void print_idt(void) { unsigned int idt = 0; unsigned char itdr[6];
__asm__ volatile ("sidt %0\t\n" : "=m" (itdr)); idt = *((unsigned long *) &itdr[2]); printk("idt is at %p\n", idt); }
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/