Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

172
Visualizações
How does the Linux knows it's maximal physical address range on x86-64 arch.?

How does the Linux knows it's maximal physical address range, especially when it builds the paging tables hierarchy? How does it know not to map a virtual address to physical address that is beyond the maximum available hardware RAM? Is there are some CPU instruction for this, or it gets the info elsewhere?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

See the related OSDev wiki page:

There are BIOS functions to get the information, for example this one (Quote from OSDev):

By far the best way to detect the memory of a PC is by using the INT 0x15, EAX = 0xE820 command. This function is available on all PCs built since 2002, and on most existing PCs before then. It is the only BIOS function that can detect memory areas above 4G. It is meant to be the ultimate memory detection BIOS function.

Another source of information is the E820 wikipedia page (note the E820 in the quote above!). To my knowledge, detect_memory_e820(), which is located in arch/x86/boot/memory.c for x86 architecture, retrieves the physical memmap from the BIOS.

Also see http://www.uruk.org/orig-grub/mem64mb.html for a detailed description of physical address map-related interrupts.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda