Skip to content
Commit 22ecc7d5 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov
Browse files

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: default avatarKir Kolyshkin <kir@openvz.org>
Acked-by: default avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 666fcf4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment