From d478a1b28bbf1b51eba34e9c3714e4042f803f27 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Sun, 11 Jul 2021 10:07:43 +0200 Subject: [PATCH] stivale2: Add support for text mode struct tag --- stage23/protos/stivale2.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stage23/protos/stivale2.c b/stage23/protos/stivale2.c index e4acf5cb..1207af52 100644 --- a/stage23/protos/stivale2.c +++ b/stage23/protos/stivale2.c @@ -421,6 +421,15 @@ skip_modeset:; #elif defined (bios) int rows, cols; init_vga_textmode(&rows, &cols, false); + + struct stivale2_struct_tag_textmode *tmtag = ext_mem_alloc(sizeof(struct stivale2_struct_tag_textmode)); + + tmtag->address = 0xb8000; + tmtag->rows = 25; + tmtag->cols = 80; + tmtag->bytes_per_char = 2; + + append_tag(&stivale2_struct, (struct stivale2_tag *)tmtag); #endif } }