physical to virtual address

Jose Miguel Pereira Tavares (mtavares@student.dei.uc.pt)
Thu, 14 Oct 1999 13:08:51 +0100


Hi!

How can I translate a physical address to a virtual address?
I have allready look to io.h phys_to_virt, but I'm not sure that is
doing the right thing - a guess it's just for io address (bellow 1Mb I
believe).

For example, having the value of cr3 (wich gives a physical address)
how do I access the Page Directory?
Or how can I access the local apic? (it's registers are mapped into the
memory 0xFEE00000... er... i think it's this address :).

-------------------- Jose Miguel Pereira Tavares --------------------

Talking much about oneself can also be a means to conceal oneself.
-- Friedrich Nietzsche

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/