1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00
freebsd/stand
Roger Pau Monné 51ab5e0d82 stand/multiboot: adjust the protocol between loader and kernel
There's a currently ad-hoc protocol to hand off the FreeBSD kernel
payload between the loader and the kernel itself when Xen is in the
middle of the picture. Such protocol wasn't very resilient to changes
to the loader itself, because it relied on moving metadata around to
package it using a certain layout. This has proven to be fragile, so
replace it with a more robust version.

The new protocol requires using a xen_header structure that will be
used to pass data between the FreeBSD loader and the FreeBSD kernel
when booting in dom0 mode. At the moment the only data conveyed is the
offset of the start of the module metadata relative to the start of the
module itself.

This is a slightly disruptive change since it also requires a change
to the kernel which is contained in this patch. In order to update
with this change the kernel must be updated before updating the
loader, as described in the handbook. Note this is only required when
booting a FreeBSD/Xen dom0. This change doesn't affect the normal
FreeBSD boot protocol.

This fixes booting FreeBSD/Xen in dom0 mode after
3630506b9d.

(cherry picked from commit b6d85a5f51)
2021-02-03 14:07:43 +01:00
..
arm Remove tests for obsolete compilers in the build system 2020-05-12 15:22:40 +00:00
arm64
common Reuse the amd64 loader relocation code on arm64 2021-01-20 17:59:38 +00:00
defaults Fix date 2021-01-07 21:15:26 +01:00
efi loader: create built in font from bold font face 2021-02-02 12:00:30 +02:00
fdt stand/fdt: Scale blob size better as overlays apply 2020-01-09 04:34:42 +00:00
ficl loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
ficl32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
fonts loader: really use bold font for vga text mode 2021-01-08 01:24:30 +02:00
forth loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
i386 stand/multiboot: adjust the protocol between loader and kernel 2021-02-03 14:07:43 +01:00
images loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
kshim Properly define the bool type in the BSD kernel shim. 2020-12-07 16:08:31 +00:00
liblua contrib/lua: update to 5.4.2 2021-01-13 23:56:18 -06:00
liblua32
libofw Fix 64-bit build of libofw. 2020-09-08 23:22:11 +00:00
libsa pkgfs_open: follow symlinks 2021-01-14 17:33:05 -08:00
libsa32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
lua lualoader: position hyphens at the beginning of character classes 2021-02-03 00:55:51 -06:00
man Correct the documented size of kern.msgbufsize 2020-10-02 15:37:51 +00:00
mips loader: fix mips build with gfx_fb 2021-01-04 16:57:50 +00:00
powerpc loader: fix powerpc build with gfx_fb 2021-01-04 16:57:58 +00:00
uboot loader: fix uboot build with gfx_fb 2021-01-03 20:45:37 +02:00
usb Fix build of stand/usb . 2020-01-23 10:40:34 +00:00
userboot userboot: provide stub gfx functions 2021-02-02 12:21:49 +02:00
defs.mk [PowerPC64LE] Set up powerpc.powerpc64le architecture 2020-09-22 23:49:30 +00:00
fdt.mk
ficl.mk loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
loader.mk loader: fix build on non-x86 platforms 2021-01-03 00:04:56 +02:00
lua.mk
Makefile stand: ensure that the efi directory's dependencies are correct 2021-01-29 23:46:17 -06:00
Makefile.amd64 stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
uboot.mk