summaryrefslogtreecommitdiff
path: root/arch/tile/lib/spinlock_64.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-08-06 14:29:59 -0400
committerChris Metcalf <cmetcalf@tilera.com>2013-08-12 14:46:43 -0400
commit77f8c740d1a4947afb7493e7aafdd977e6d7939c (patch)
tree67470387bec62f1a5475d194f4b6175dda079eb9 /arch/tile/lib/spinlock_64.c
parentbda0f5bad812df076a28fa5e58d86dfe68415251 (diff)
tile: support "memmap" boot parameter
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: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/lib/spinlock_64.c')
0 files changed, 0 insertions, 0 deletions