git: 773fc43fb060 - main - Revert "Split out the loader efifb setup to a new function"

Andrew Turner andrew at FreeBSD.org
Wed Mar 3 16:19:33 UTC 2021


The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=773fc43fb060149f8e59c183e5da79feaf118c8c

commit 773fc43fb060149f8e59c183e5da79feaf118c8c
Author:     Andrew Turner <andrew at FreeBSD.org>
AuthorDate: 2021-03-03 16:09:00 +0000
Commit:     Andrew Turner <andrew at FreeBSD.org>
CommitDate: 2021-03-03 16:10:12 +0000

    Revert "Split out the loader efifb setup to a new function"
    
    It was broken by a rebase. Revert until it can be fixed.
    
    This reverts commit c8db60c0673d4bb7a3a3e2c043804e1ed1108c2f.
---
 stand/efi/loader/bootinfo.c | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/stand/efi/loader/bootinfo.c b/stand/efi/loader/bootinfo.c
index 327751e32f0b..9924901d29e6 100644
--- a/stand/efi/loader/bootinfo.c
+++ b/stand/efi/loader/bootinfo.c
@@ -299,9 +299,6 @@ bi_load_efi_data(struct preloaded_file *kfp, bool exit_bs)
 	bool do_vmap;
 
 #if defined(__amd64__) || defined(__aarch64__)
-static void
-bi_load_efifb(struct preloaded_file *kfp)
-{
 	struct efi_fb efifb;
 
 	efifb.fb_addr = gfx_state.tg_fb.fb_addr;
@@ -324,25 +321,6 @@ bi_load_efifb(struct preloaded_file *kfp)
 
 	if (efifb.fb_addr != 0)
 		file_addmetadata(kfp, MODINFOMD_EFI_FB, sizeof(efifb), &efifb);
-}
-#endif
-
-static int
-bi_load_efi_data(struct preloaded_file *kfp, bool exit_bs)
-{
-	EFI_MEMORY_DESCRIPTOR *mm;
-	EFI_PHYSICAL_ADDRESS addr = 0;
-	EFI_STATUS status;
-	const char *efi_novmap;
-	size_t efisz;
-	UINTN efi_mapkey;
-	UINTN dsz, pages, retry, sz;
-	UINT32 mmver;
-	struct efi_map_header *efihdr;
-	bool do_vmap;
-
-#if defined(__amd64__) || defined(__aarch64__)
-	bi_load_efifb(kfp);
 #endif
 
 	do_vmap = true;


More information about the dev-commits-src-main mailing list