]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Unobfuscate "KERNLOAD" parameter on amd64. This change lines-up amd64 with the
authorsobomax <sobomax@FreeBSD.org>
Wed, 25 Nov 2020 23:19:01 +0000 (23:19 +0000)
committersobomax <sobomax@FreeBSD.org>
Wed, 25 Nov 2020 23:19:01 +0000 (23:19 +0000)
commit88da27eed40ab8182c666074e0c1a6f02a38ffaa
tree5841a3c40ef762c7c24d1f8259bf64abfb3b035b
parentaa9d346faac67f52a5c4b58e84c56034a1a953f7
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