stivale2_rt: Fix mov of the incorrect size

This commit is contained in:
mintsuki 2021-07-25 15:23:29 +02:00
parent 5106c6cde2
commit f2fcc38af7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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