aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2025-03-03 15:46:39 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2025-03-03 16:12:15 +0000
commite2a08ac9ce424f543a2f03c67fb882fdabbdd32a (patch)
treea4f60d723c83f8b7d7f68fb4be6c62bf1893fa47 /sys
parenta2e2178402afff939cb90e75c65ded0a9da8ac5c (diff)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/vt/hw/efifb/efifb.c9
-rw-r--r--sys/riscv/conf/GENERIC1
-rw-r--r--sys/riscv/include/metadata.h1
3 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/vt/hw/efifb/efifb.c b/sys/dev/vt/hw/efifb/efifb.c
index eda05ec3d203..ad49b6735998 100644
--- a/sys/dev/vt/hw/efifb/efifb.c
+++ b/sys/dev/vt/hw/efifb/efifb.c
@@ -96,9 +96,11 @@ vt_efifb_init(struct vt_device *vd)
{
struct fb_info *info;
struct efi_fb *efifb;
- int memattr;
+ vm_memattr_t memattr;
int roff, goff, boff;
- char attr[16];
+
+#ifdef VM_MEMATTR_WRITE_COMBINING
+ char attr[16];
/*
* XXX TODO: I think there's more nuance here than we're acknowledging,
@@ -122,6 +124,9 @@ vt_efifb_init(struct vt_device *vd)
memattr = VM_MEMATTR_UNCACHEABLE;
}
}
+#else
+ memattr = VM_MEMATTR_UNCACHEABLE;
+#endif
info = vd->vd_softc;
if (info == NULL)
diff --git a/sys/riscv/conf/GENERIC b/sys/riscv/conf/GENERIC
index 34426f167963..8dca3bdb3369 100644
--- a/sys/riscv/conf/GENERIC
+++ b/sys/riscv/conf/GENERIC
@@ -140,6 +140,7 @@ device uart_ns8250 # ns8250-type UART driver
# Console
device vt
+device vt_efifb
device kbdmux
# RTC
diff --git a/sys/riscv/include/metadata.h b/sys/riscv/include/metadata.h
index fbc0afce5c10..6ade03e15ea3 100644
--- a/sys/riscv/include/metadata.h
+++ b/sys/riscv/include/metadata.h
@@ -30,6 +30,7 @@
#define MODINFOMD_DTBP 0x1001
#define MODINFOMD_EFI_MAP 0x1002
+#define MODINFOMD_EFI_FB 0x1003
struct efi_map_header {
size_t memory_size;