]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add chain loader support for loader
authortsoome <tsoome@FreeBSD.org>
Fri, 16 Jun 2017 20:08:44 +0000 (20:08 +0000)
committertsoome <tsoome@FreeBSD.org>
Fri, 16 Jun 2017 20:08:44 +0000 (20:08 +0000)
commit598cf3cf77cd619e6ecc8d95b84c587312d854cb
tree4fc254d1768e7f9f77522eeceaa9f2741237cfb0
parentf4dd073cce9d31815b2903a25d76ec29b9a4cbdd
Add chain loader support for loader

Implement simple chain loader in loader; this update does add chain command,
taking device or file as argument to load and start new boot loader.

In case of BIOS, the chain will read the boot block to address 0000:7c00 and
jumps on it. In case of UEFI, the chain command is to be used with efi
application, typically stored in EFI System Partition.

The update also does add simple menu entry, if the variable chain_disk is set.
The value of the variable chain_disk is used as argument for chain loading.

Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D5992
sys/boot/efi/loader/main.c
sys/boot/forth/menu.rc
sys/boot/i386/libi386/Makefile
sys/boot/i386/libi386/libi386.h
sys/boot/i386/libi386/relocater_tramp.S [new file with mode: 0644]
sys/boot/i386/loader/Makefile
sys/boot/i386/loader/chain.c [new file with mode: 0644]
sys/boot/i386/loader/help.i386