From cb51bff8173ec7c45dee4852a9be0e7c67fe2426 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sat, 3 Jun 2023 10:28:06 +0900 Subject: [PATCH] boot: add option for 'lfbwc', and enable it by default --- boot/config.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boot/config.c b/boot/config.c index 35686497..d2d6a632 100644 --- a/boot/config.c +++ b/boot/config.c @@ -101,6 +101,10 @@ int kmain() { "Migrates the ramdisk from tarball to an in-memory", "temporary filesystem at boot. Needed for packages."); + BOOT_OPTION(_lfbwc, 1, "WC framebuffer", + "Enables write-combining PAT configuration for", + "framebuffers. Toggle if graphics are slow."); + while (1) { /* Loop over rendering the menu */ show_menu(); @@ -163,6 +167,10 @@ int kmain() { strcat(cmdline, "sharedps2 "); } + if (_lfbwc) { + strcat(cmdline, "lfbwc "); + } + if (!boot_edit) break; if (boot_editor()) break;