:: commit f2fcc38af7bdb8900e3c4421df8d688e4f46cae7

mintsuki <mintsuki@protonmail.com> — 2021-07-25 13:23

parents: 5106c6cde2

stivale2_rt: Fix mov of the incorrect size

diff --git a/stage23/protos/stivale2_rt.asm b/stage23/protos/stivale2_rt.asm
index fb09085f..26517ca5 100644
--- a/stage23/protos/stivale2_rt.asm
+++ b/stage23/protos/stivale2_rt.asm
@@ -27,7 +27,7 @@ stivale2_term_write_entry:
     push r15
 
     mov [user_stack], rsp
-    mov rsp, [stivale2_rt_stack]
+    mov esp, [stivale2_rt_stack]
 
     mov word [user_cs], cs
     mov word [user_ds], ds
diff --git a/stage23/protos/stivale2_rt.asm32 b/stage23/protos/stivale2_rt.asm32
index 2529b346..d39e5a3b 100644
--- a/stage23/protos/stivale2_rt.asm32
+++ b/stage23/protos/stivale2_rt.asm32
@@ -34,7 +34,7 @@ stivale2_term_write_entry:
     add ebx, _GLOBAL_OFFSET_TABLE_ + $$ - .get_got wrt ..gotpc
 
     mov [rbx + user_stack wrt ..gotoff], rsp
-    mov rsp, [rbx + stivale2_rt_stack wrt ..gotoff]
+    mov esp, [rbx + stivale2_rt_stack wrt ..gotoff]
 
     mov word [rbx + user_cs wrt ..gotoff], cs
     mov word [rbx + user_ds wrt ..gotoff], ds
tab: 248 wrap: offon