• Chris Metcalf's avatar
    tile: support "memmap" boot parameter · 77f8c740
    Chris Metcalf authored
    This change adds support for the "memmap" boot parameter similar
    to what x86 provides.  The tile version supports "memmap=1G$5G",
    for example, as a way to reserve a 1 GB range starting at PA 5GB.
    The memory is reserved via bootmem during startup, and we create a
    suitable "struct resource" marked as "Reserved" so you can see the
    range reported by /proc/iomem.  Up to 64 such regions can currently
    be reserved on the boot command line.
    
    We do not support the x86 options "memmap=nn@ss" (force some memory
    to be available at the given address) since it's pointless to try to
    have Linux use memory the Tilera hypervisor hasn't given it.  We do
    not support "memmap=nn#ss" to add an ACPI range for later processing,
    since we don't support ACPI.  We do not support "memmap=exactmap"
    since we don't support reading the e820 information from the BIOS
    like x86 does.  I did add support for "memmap=nn" (and the synonym
    "mem=nn") which cap the highest PA value at "nn"; these are both
    just a synonym for the existing tile boot option "maxmem".
    Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
    77f8c740
setup.c 47.7 KB