Commit 22ecc7d5 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

ppc64/restore.h: fix for clang

Apparently, clang 3.8 ppc doesn't know the register name 'sp'.

> criu/cr-restore.c:3179:2: error: unknown register name 'sp' in asm
>         JUMP_TO_RESTORER_BLOB(new_sp, restore_task_exec_start,
> task_args);
>         ^
> /criu/criu/arch/ppc64/include/asm/restore.h:24:5: note: expanded from
> macro 'JUMP_TO_RESTORER_BLOB'
>                 : "sp", "1", "2", "3", "12", "memory")
>                   ^
> 1 error generated.

According to docs, stack pointer is r1.

travis-ci: success for PPC+clang compile fixes
Cc: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 666fcf4f
......@@ -21,7 +21,7 @@
: "r"(new_sp), \
"r"((unsigned long)restore_task_exec_start), \
"r"(task_args) \
: "sp", "1", "2", "3", "12", "memory")
: "r1", "1", "2", "3", "12", "memory")
/* There is nothing to do since TLS is accessed through r13 */
#define core_get_tls(pcore, ptls)
......
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