Jump to content

[Resolvido] Paging MMU

Recommended Posts



Por exemplo eu tenho este endereço virtual 8196 e quero o endereço fisico, alguem me pode explicar como fazer isto?

Share this post

Link to post
Share on other sites

Não tenho a certeza se é isto que desejas, mas aqui vai:

No Linux, podes usar uma função disponível no asm/io.h:

  • virt_to_phys(virt_addr);
  • phys_to_virt(phys_addr);
  • virt_to_bus(virt_addr);
  • bus_to_virt(bus_addr);

Basta chamares a função e passar o parâmetro.


Edited by Guest

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.