:: commit d478a1b28bbf1b51eba34e9c3714e4042f803f27

mintsuki <mintsuki@protonmail.com> — 2021-07-11 08:07

parents: f5ffbdf2cd

stivale2: Add support for text mode struct tag

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
     }
     }
tab: 248 wrap: offon