Create a new linker set, Xficl_compile_set which contains a list of
authorimp <imp@FreeBSD.org>
Fri, 14 Oct 2016 16:23:12 +0000 (16:23 +0000)
committerimp <imp@FreeBSD.org>
Fri, 14 Oct 2016 16:23:12 +0000 (16:23 +0000)
commitc13c2609ab20f0e7dd2923a2adcc95fb6c76986b
tree1b0ae94018d5efd82956e286063a5972b89bbff5
parent579d1791de5b2cbce4419d13102ffeb6cdd6665c
Create a new linker set, Xficl_compile_set which contains a list of
functions to call at the appropriate time to register new forth
words. In the past we've done this with ifdef soup, but now if the
file is included in the build, we'll get the new forth words.

Use this new functionality to move the pci bios stuff out of loader.c
by moving it to biospci.c.

Move the pnp functionality to common/pnp.c.

Move the inb/outb forth words to the i386 sysdep.c file where their
implementation is defined.

Adjust the efi linker scripts and build machinery to cope.

his should be an invisible change to forth scripts and user
experience.

Differential Revision: https://reviews.freebsd.org/D8145
15 files changed:
sys/boot/common/bootstrap.h
sys/boot/common/pnp.c
sys/boot/efi/loader/Makefile
sys/boot/efi/loader/arch/amd64/ldscript.amd64
sys/boot/efi/loader/arch/arm/ldscript.arm
sys/boot/efi/loader/arch/arm64/ldscript.arm64
sys/boot/efi/loader/arch/i386/ldscript.i386
sys/boot/ficl/ficl.h
sys/boot/ficl/i386/sysdep.c
sys/boot/ficl/loader.c
sys/boot/i386/libi386/Makefile
sys/boot/i386/libi386/biospci.c
sys/boot/i386/libi386/libi386.h
sys/boot/mips/beri/loader/loader.ldscript
sys/boot/pc98/libpc98/Makefile