MFaltix:
authorMarcel Moolenaar <marcel@FreeBSD.org>
Wed, 16 Mar 2011 03:53:18 +0000 (03:53 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Wed, 16 Mar 2011 03:53:18 +0000 (03:53 +0000)
commit18d9407a9f4239117fa030904e991cd5c842cbdd
tree55215f77e655236a449e347f8f98d98dfb718eed
parentb6ef626a6ccd59caefb98217bf2c426a3d0b4366
parent155438b4bdd8533d8d675e62dcec761398b93f58
MFaltix:
Add support for Pre-Boot Virtual Memory (PBVM) to the loader.

PBVM allows us to link the kernel at a fixed virtual address without
having to make any assumptions about the physical memory layout. On
the SGI Altix 350 for example, there's no usuable physical memory
below 192GB. Also, the PBVM allows us to control better where we're
going to physically load the kernel and its modules so that we can
make sure we load the kernel in memory that's close to the BSP.

The PBVM is managed by a simple page table. The minimum size of the
page table is 4KB (EFI page size) and the maximum is currently set
to 1MB. A page in the PBVM is 64KB, as that's the maximum alignment
one can specify in a linker script. The bottom line is that PBVM is
between 64KB and 8GB in size.

The loader maps the PBVM page table at a fixed virtual address and
using a single translations. The PBVM itself is also mapped using a
single translation for a maximum of 32MB.

While here, increase the heap in the EFI loader from 512KB to 2MB
and set the stage for supporting relocatable modules.
sys/ia64/include/bootinfo.h
sys/ia64/include/vmparam.h