Interrupt Descriptor Table question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I was trying to figure out where in the memory lives the interrupt descriptor table. I wrote the following code which is called at start_kernel bofore smp_init. My problem is that the printk prints 0xc0330000. This is supposed to be physical memory pointer right? (I don't have that much memory). I do not believe this is a kernel virtual memory pointer. What am I missing?

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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux