Commit 1c452384 authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

x86/parasite-head: add 32-bit parasite entry

To drop the second parasite blob, create another entry in 64-bit
parasite.
Didn't remove parasite-head-compat.S - it we gonna support native 32-bit
buids, we gonna need it.

travis-ci: success for Rectify 32-bit compatible C/R on x86
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 8c1d8b74
......@@ -6,6 +6,16 @@
# error 64-bit parasite should compile with CONFIG_X86_64
#endif
#ifdef CONFIG_COMPAT
.code32
ENTRY(__export_parasite_head_start_compat)
/* A long jump to 64-bit parasite. */
jmp $__USER_CS,$__export_parasite_head_start
int $0x03
END(__export_parasite_head_start_compat)
.code64
#endif
ENTRY(__export_parasite_head_start)
subq $16, %rsp
andq $~15, %rsp
......@@ -15,7 +25,8 @@ ENTRY(__export_parasite_head_start)
leaq __export_parasite_args(%rip), %rsi
call parasite_service
int $0x03
.align 8
__export_parasite_cmd:
.long 0
END(__export_parasite_head_start)
.align 8
GLOBAL(__export_parasite_cmd)
.long 0
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