]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand/kboot: Make FDT fixup per-arch
authorWarner Losh <imp@FreeBSD.org>
Thu, 27 Oct 2022 17:36:51 +0000 (11:36 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 27 Oct 2022 17:36:51 +0000 (11:36 -0600)
commitcc9f1b4c35974972c36553d4ca07ac91dc4262a2
tree767f5c68e71a5fbb0ae73b741c658bfe69fea273
parent1d21f64149224000d74e0c850686e85aefd25ef9
stand/kboot: Make FDT fixup per-arch

The fixups needed vary somewhat by architecture, so move the FDT fixup
to be per-arch. Rename the fdt_linux_fixup() routine to be
fdt_arch_fixup() and expect all architecutres to fix things up as
needed.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D36604
stand/kboot/arch/amd64/Makefile.inc
stand/kboot/arch/amd64/fdt_arch.c [new file with mode: 0644]
stand/kboot/arch/powerpc64/Makefile.inc
stand/kboot/arch/powerpc64/fdt_arch.c [new file with mode: 0644]
stand/kboot/kboot.h
stand/kboot/kbootfdt.c