]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the module pointer to find the address we need to map to in the early
authorandrew <andrew@FreeBSD.org>
Mon, 4 Dec 2017 11:25:34 +0000 (11:25 +0000)
committerandrew <andrew@FreeBSD.org>
Mon, 4 Dec 2017 11:25:34 +0000 (11:25 +0000)
commit9e0a98e9455cd0358c8be59e659e2eaae194215b
treebaf7d66672076a15956f94bb523ae26c98ec2bba
parentc4fd89c6ba441c83f90e561eb89fe8d2fa910cd2
Use the module pointer to find the address we need to map to in the early
arm64 boot sequence. This will be a virtual address in the kernel space
after the kernel and any modules loaded by loader so we can use this to
find the size of the kernel + modules. We can then add on a level 2 page for
the module data and round up the size to be aligned to a level 2 page.

This allows more than 8 MiB of modules to be loaded by loader, e.g. zfs.ko
and opensolaris.ko.

Reported by: Shawn Webb
MFC after: 1 week
Sponsored by: DARPA, AFRL
sys/arm64/arm64/locore.S