boot: add option for 'lfbwc', and enable it by default
This commit is contained in:
parent
359023e2cc
commit
cb51bff817
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user