All of lore.kernel.org
 help / color / mirror / Atom feed
* Reading the GDT in kernel space?
@ 2006-08-23 14:09 Rajat Jain
  2006-08-23 15:29 ` Josef Sipek
  2006-08-24  8:40 ` mohanlal jangir
  0 siblings, 2 replies; 4+ messages in thread
From: Rajat Jain @ 2006-08-23 14:09 UTC (permalink / raw)
  To: kernelnewbies, Linux Newbie

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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

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

end of thread, other threads:[~2006-08-28  0:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-23 14:09 Reading the GDT in kernel space? Rajat Jain
2006-08-23 15:29 ` Josef Sipek
2006-08-24  8:40 ` mohanlal jangir
2006-08-28  0:47   ` Rene Herman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.