[CRIU] [PATCH 2/4] ppc64/restore.h: fix for clang
Kir Kolyshkin
kir at openvz.org
Tue Oct 25 22:08:30 PDT 2016
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.
Cc: Laurent Dufour <ldufour at linux.vnet.ibm.com>
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
criu/arch/ppc64/include/asm/restore.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/arch/ppc64/include/asm/restore.h b/criu/arch/ppc64/include/asm/restore.h
index 7e35943..bac7bb5 100644
--- a/criu/arch/ppc64/include/asm/restore.h
+++ b/criu/arch/ppc64/include/asm/restore.h
@@ -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)
--
2.7.4
More information about the CRIU
mailing list