Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2024 21:04:54 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 784f925e507f - main - loader: Font module is EFI dependent
Message-ID:  <202402022104.412L4sNu056349@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=784f925e507f441206279a1e8776629fa7cdd14c

commit 784f925e507f441206279a1e8776629fa7cdd14c
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-02 01:37:12 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-02-02 21:01:04 +0000

    loader: Font module is EFI dependent
    
    The font module is part of the gfx_fb support. Since we share this file
    between EFI and kboot, we only want to pass the font data to the kernel
    when we're booting from EFI, not kboot.
    
    Sponsored by:           Netflix
---
 stand/efi/loader/bootinfo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/stand/efi/loader/bootinfo.c b/stand/efi/loader/bootinfo.c
index f47d81e23591..13b6df9c5b06 100644
--- a/stand/efi/loader/bootinfo.c
+++ b/stand/efi/loader/bootinfo.c
@@ -386,10 +386,12 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
 	/* Pad to a page boundary. */
 	addr = roundup(addr, PAGE_SIZE);
 
+#ifdef EFI
 	addr = build_font_module(addr);
 
 	/* Pad to a page boundary. */
 	addr = roundup(addr, PAGE_SIZE);
+#endif
 
 	/* Copy our environment. */
 	envp = addr;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402022104.412L4sNu056349>