:: commit c011339c0ca4b828082a4cc8337e8ea4273696ff

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

parents: 9ab0beea54

stivale2: Clear terminal before passing control to kernel

diff --git a/stage23/protos/stivale2.c b/stage23/protos/stivale2.c
index c8d119c1..752dfe7e 100644
--- a/stage23/protos/stivale2.c
+++ b/stage23/protos/stivale2.c
@@ -463,6 +463,9 @@ skip_modeset:;
             break;
     }
 
+    // Clear terminal for kernels that will use the stivale2 terminal
+    term_write("\e[2J\e[H", 7);
+
     stivale_spinup(bits, level5pg && level5pg_requested, &pagemap,
                    entry_point, &stivale2_struct, stivale2_hdr.stack);
 }
tab: 248 wrap: offon