HomeFreeBSD

MFC r309151: Use explicit 0x200000 for the amd64 kernel physaddr

Description

MFC r309151: Use explicit 0x200000 for the amd64 kernel physaddr

(instead of MAXPAGESIZE)

MAXPAGESIZE is not well defined by the GNU ld documentation.
Different linkers, and different versions of the same linker, use
different MAXPAGESIZE values. Current versions of GNU gold and LLVM's
lld use 4K. When set to 4K the kernel panics at boot due to an issue
with x86bios.

Here we want the kernel physaddr to be the amd64 superpage size, so use
that value (2MB) explicitly. With this change GNU gold and LLVM lld can
link a working amd64 kernel.

PR: 214718 (x86bios)
Sponsored by: The FreeBSD Foundation

Details

Committed
emasteOct 11 2017, 12:31 AM
Parents
rS324509: sysctl.9: document CTLFLAG_CAPRD and CTLFLAG_CAPWR
Branches
Unknown
Tags
Unknown