aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/loader/autoload.c
Commit message (Collapse)AuthorAgeFilesLines
* libsa: Remove redundant sys/cdefs.hWarner Losh2024-02-221-1/+0
| | | | Sponsored by: Netflix
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* loader: fdt: Add fdt_is_setup functionEmmanuel Vadot2019-04-251-1/+2
| | | | | | | | | | | | | | When efi_autoload is called it will call fdt_setup_fdtp which setup the dtb and overlays. If a user already loaded at dtb or overlays or just printed the efi provided dtb, this will re-setup everything and also re-applying the overlays. Test that everything is setup before doing it again. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D20059 Notes: svn path=/head/; revision=346701
* efiloader: Setup FDT in autoload to fix overlays clobbering kenvKyle Evans2018-08-231-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | manu found in the noted PR that overlays seemed to be clobbering the kenv and killing the boot. Further inspection revealed that one can `fdt ls` at the loader prompt for a successful boot, but autoboot breaks it. In the autoboot case, first setup of FDT is happening in the middle of bi_load, which triggers loading of the DTBO from /boot. This is bad, bad, bad. Files in the loader are loaded somewhere in the middle of the address space one after another. bi_load starts building the needed kernel bootinfo immediately after the highest-addr loaded file. File loads in the middle of bi_load suddenly clobber bootinfo and everything goes off the rails. The solution to this is to use take advantage of arch_autoload to setup FDT in efiloader compiled with LOADER_FDT_SUPPORT. This matches how it works in ubldr land, and is how it should have worked when overlay support was added to efiloader since fdt_setup_fdtp now has the potential to load files (courtesy of fdt_platform_load_dtb). PR: 230804 Discussed with: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D16858 Notes: svn path=/head/; revision=338250
* Move sys/boot to stand. Fix all references to new locationWarner Losh2017-11-141-0/+37
Sponsored by: Netflix Notes: svn path=/head/; revision=325834