Skip to content

Commit

Permalink
parasite-head-32: fix cmd & args load
Browse files Browse the repository at this point in the history
Seems like, offset was broken. And it had typo: leal -> movl,
as cmd parameter is int and in parasite_service, it will
cmp address with int constants. Fixed - loads good now.

Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
  • Loading branch information
0x7f454c46 committed Mar 29, 2016
1 parent ee1fa88 commit 7f1eb57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions criu/arch/x86/parasite-head-32.S
Expand Up @@ -14,8 +14,8 @@ ENTRY(__export_parasite_head_start)
movl %esp, %ebp
call 1f
1: popl %ecx
2: leal (__export_parasite_cmd-2b)(%ecx), %eax
leal (__export_parasite_args-2b)(%ecx), %edx
2: movl (__export_parasite_cmd-1b)(%ecx), %eax
leal (__export_parasite_args-1b)(%ecx), %edx
call parasite_service
int $0x03
.align 8
Expand Down

0 comments on commit 7f1eb57

Please sign in to comment.