Commit f6126361 authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

parasite-head-32: fix cmd & args load

Seems like, offset was broken. And it had typo: leal -> movl
(according to 64-bit parasite header), as cmd parameter is int
(not pointer to int) in parasite_service:
int __used __parasite_entry parasite_service(unsigned int cmd, void *args)
Fixed - loads good now.

Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent b6aca38d
......@@ -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
movl (__export_parasite_cmd-1b)(%ecx), %eax
leal (__export_parasite_args-1b)(%ecx), %edx
call parasite_service
int $0x03
.align 8
......
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