From 693945b157944a6f24f3431434d774c9adfd5628 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Wed, 14 Apr 2021 10:44:55 +0200 Subject: [PATCH] stivale2: Implement cols and rows fields for terminal struct tag --- stage23/protos/stivale2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stage23/protos/stivale2.c b/stage23/protos/stivale2.c index 752dfe7e..56bfe37e 100644 --- a/stage23/protos/stivale2.c +++ b/stage23/protos/stivale2.c @@ -303,6 +303,11 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table tag->term_write = (uintptr_t)term_write; #endif + // We provide rows and cols + tag->flags |= (1 << 0); + tag->cols = term_cols; + tag->rows = term_rows; + append_tag(&stivale2_struct, (struct stivale2_tag *)tag); goto skip_modeset;