mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
(cherry picked from commit 784f925e50)
This commit is contained in:
parent
639574132b
commit
03de11635b
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue