HomeFreeBSD

amd64 pti init: fix calculation of the kernel text start

Description

amd64 pti init: fix calculation of the kernel text start

Old expression happens to provide the correct answer, but assumes that
kernel is loaded at physical address zero, with 2M gap. Do not use
kernphys to calculate KVA of kernel text start, just explicitly write
out KERNBASE and the hole size.

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:51 PM
Reviewer
markj
Differential Revision
D31121: amd64 UEFI boot: stop copying staging area to 2M phys
Parents
rG12faeba9953a: allwinner: rsb: Set the PMIC to RSB mode
Branches
Unknown
Tags
Unknown