Commit 4907896e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: Don't unmap special areas until they are handled properly

Note for testing purpose a pause issued at the end.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent dfe814aa
......@@ -159,6 +159,9 @@ self_len_end:
write_hex_n(__LINE__);
if (!(vma_entry.status & VMA_AREA_REGULAR))
continue;
write_hex_n(vma_entry.start);
if (sys_munmap((void *)vma_entry.start,
vma_entry.end - vma_entry.start))
......@@ -170,6 +173,9 @@ self_len_end:
sys_close(fd_self_vmas);
sys_close(fd_core);
for (;;)
asm volatile("pause");
goto core_restore_end;
/*
* Unmap all but self, note that we reply on
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment