]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Unobfuscate "KERNLOAD" parameter on amd64. This change lines-up amd64 with the
authorMaxim Sobolev <sobomax@FreeBSD.org>
Wed, 25 Nov 2020 23:19:01 +0000 (23:19 +0000)
committerMaxim Sobolev <sobomax@FreeBSD.org>
Wed, 25 Nov 2020 23:19:01 +0000 (23:19 +0000)
commitfd2ef8ef5a054d9f26b6b36ea56a5414c7683e39
tree5841a3c40ef762c7c24d1f8259bf64abfb3b035b
parentd1e0552937e18bef661fb9ace710bcaa1b5d5a80
Unobfuscate "KERNLOAD" parameter on amd64. This change lines-up amd64 with the
i386 and the rest of supported architectures by defining KERNLOAD in the
vmparam.h and getting rid of magic constant in the linker script, which albeit
documented via comment but isn't programmatically accessible at a compile time.

Use KERNLOAD to eliminate another (matching) magic constant 100 lines down
inside unremarkable TU "copy.c" 3 levels deep in the EFI loader tree.

Reviewed by: markj
Approved by: markj
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D27355
stand/efi/loader/copy.c
sys/amd64/amd64/genassym.c
sys/amd64/amd64/locore.S
sys/amd64/include/vmparam.h
sys/conf/ldscript.amd64