From a3f84fc4a3623fe106f805a8ec24cd3c3552e072 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Wed, 12 Apr 2023 19:50:01 +0900 Subject: [PATCH] multiboot2: Support TEXTMODE config as with linux --- common/protos/multiboot2.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/protos/multiboot2.c b/common/protos/multiboot2.c index f320028a..fe15059f 100644 --- a/common/protos/multiboot2.c +++ b/common/protos/multiboot2.c @@ -521,6 +521,15 @@ noreturn void multiboot2_load(char *config, char* cmdline) { size_t req_width = 0; size_t req_height = 0; size_t req_bpp = 0; +#if defined (BIOS) + { + char *textmode_str = config_get_value(config, 0, "TEXTMODE"); + bool textmode = textmode_str != NULL && strcmp(textmode_str, "yes") == 0; + if (textmode) { + goto textmode; + } + } +#endif if (fbtag) { req_width = fbtag->width;