HomeFreeBSD

amd64: do not assume that kernel is loaded at 2M physical

Description

amd64: do not assume that kernel is loaded at 2M physical

Allow any 2M aligned contiguous location below 4G for the staging
area location. It should still be mapped by loader at KERNBASE.

The assumption kernel makes about loader->kernel handoff with regard to
the MMU programming are explicitly listed at the beginning of hammer_time(),
where kernphys is calculated. Now kernphys is the variable instead of
symbol designating the physical address.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D31121

Details

Provenance
kibAuthored on Jul 10 2021, 7:48 PM
Reviewer
markj
Differential Revision
D31121: amd64 UEFI boot: stop copying staging area to 2M phys
Parents
rG792b602a337d: Bump the FreeBSD version after making FPU sections thread-safe in the LinuxKPI.
Branches
Unknown
Tags
Unknown