2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 05:18:00 +00:00
criu/arch/arm/include/asm/restore.h
Alexander Kartashov 8fa8ca9feb arm: added ARM-specific files modelled after arch/x86
Signed-off-by: Alexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-01-22 22:53:24 +04:00

26 lines
668 B
C

#ifndef __CR_ASM_RESTORE_H__
#define __CR_ASM_RESTORE_H__
#define JUMP_TO_RESTORER_BLOB(new_sp, restore_task_exec_start, \
task_args) \
asm volatile( \
"mov %%sp, %%%0 \n" \
"mov %%r1, %%%1 \n" \
"mov %%r0, %%%2 \n" \
"bx %%r1 \n" \
: \
: "r"(new_sp), \
"r"(restore_task_exec_start), \
"r"(task_args) \
: "sp", "r0", "r1", "memory")
static inline void core_get_tls(CoreEntry *pcore, u32 *ptls)
{
*ptls = pcore->ti_arm->tls;
}
int sigreturn_prep_fpu_frame(struct thread_restore_args *args, CoreEntry *core);
#endif