mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -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
This commit is contained in:
parent
fd577b59b2
commit
784f925e50
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