]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r309151: Use explicit 0x200000 for the amd64 kernel physaddr
authoremaste <emaste@FreeBSD.org>
Wed, 11 Oct 2017 00:31:54 +0000 (00:31 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 11 Oct 2017 00:31:54 +0000 (00:31 +0000)
commit1217b7dd338d048d17bfafbf04c38d0ee1c49fb3
tree2ebfadb26a0fc0a72c791cd433f0ae01f0f6dcfe
parentb7ba9aef7e5bcd83556a3f71e2d777576d85a440
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
sys/conf/ldscript.amd64