Reading the GDT in kernel space?

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

 



Hi,

I'm trying to read & display the GDT contents in kernel space. Is this
permissible? I used the "sgdt" assembly instruction to load the GDT
register, and found out the address & length of GDT from that (It is
"0000c248") . Is this the physical or the virtual address?

I'm now trying to print out the contents of GDT. I am able to print
this address. BUt the moment I try to deference it, the kernel OOPS. I
understand that this is because the address is not in kernel virtual
address space (3GB). I tried using "ioremap" but it always returns
NULL. Any ideas?

Thanks in Advance,

Rajat
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux