riscv: enable EFI framebuffer

Pass framebuffer information from loader(8) to the kernel via the
MODINFOMD_EFI_FB metadata field.

Enable the vt_efifb driver. A small tweak is required to work around the
lack of VM_MEMATTR_WRITE_COMBINING on this platform; we use
VM_MEMATTR_UNCACHEABLE instead.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D48884
This commit is contained in:
Mitchell Horne
2025-03-03 11:46:39 -04:00
parent a2e2178402
commit e2a08ac9ce
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ bi_load_efi_data(struct preloaded_file *kfp, bool exit_bs)
struct efi_map_header *efihdr;
bool do_vmap;
#if defined(__amd64__) || defined(__aarch64__) || defined(__i386__)
#ifdef MODINFOMD_EFI_FB
struct efi_fb efifb;
efifb.fb_addr = gfx_state.tg_fb.fb_addr;