stivale2: Implement cols and rows fields for terminal struct tag

This commit is contained in:
mintsuki 2021-04-14 10:44:55 +02:00
parent e52f4620cc
commit 693945b157
1 changed files with 5 additions and 0 deletions

View File

@ -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;