]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: Initial kboot support on amd64
authorWarner Losh <imp@FreeBSD.org>
Sun, 1 May 2022 17:13:18 +0000 (11:13 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 24 Jan 2023 21:49:21 +0000 (14:49 -0700)
commitc73795f9f44af8c4c0546cdf6aca4f382336e498
tree1569d6eedbf73aab81810c3387803bb3ca85f85f
parent2b93cd564689a941141ac1f340e837e0b9642abe
stand: Initial kboot support on amd64

Get amd64 compiling. However, the current kboot supports an old way of
enumerating memory and the new way needs to be incorporated as well. The
powerpc folks could use either, it seems and newer powerpc platforms
need some changes for kboot to work anyway.

This commit includes the linker script, trampoline code to start the new
kernel, Linux system calls and the necessary configuration glue needed
to build the binaries.

This includes a quick hack to get multiboot support, but we need to
really share these defines. The multiiboot2.h is the minimum needed to
build. We have multiboot information in three places now, so a
refactoring is in order.

This should be considered, at best, preliminary and experimental for
anybody wishing to try it out.

Sponsored by: Netflix
Reviewed by: tsoome
Differential Revision: https://reviews.freebsd.org/D35100

(cherry picked from commit 7df08a14e3fda5d0e7f3aef523ffcc7b3fae248d)
share/mk/src.opts.mk
stand/kboot/arch/amd64/Makefile.inc [new file with mode: 0644]
stand/kboot/arch/amd64/amd64_tramp.S [new file with mode: 0644]
stand/kboot/arch/amd64/conf.c [new file with mode: 0644]
stand/kboot/arch/amd64/elf64_freebsd.c [new file with mode: 0644]
stand/kboot/arch/amd64/host_syscall.S [new file with mode: 0644]
stand/kboot/arch/amd64/ldscript.amd64 [new file with mode: 0644]
stand/kboot/arch/amd64/multiboot2.h [new file with mode: 0644]
stand/kboot/arch/amd64/syscall_nr.h [new file with mode: 0644]