hex0.S: save another byte when accessing stack contents.

This commit is contained in:
Andrius Štikonas 2022-07-17 13:23:18 +01:00
parent d96dc0e322
commit bfb164eb68
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,9 @@ loop_options2: # Skip argv[1]
push rax # allocate shadow stack space for UEFI function
push rax # allocate shadow stack space for UEFI function
call [rcx+8] # rootfs->open_volume(rootfs, &rootdir)
mov r14, [rsp+16] # save &rootdir
pop rax # deallocate stack
pop rax # deallocate stack
pop r14 # save &rootdir
# Open file for writing
push rdx # allocate stack for fout