criu/minexec.S
Cyrill Gorcunov 0c46b2b68f Add minexec sources
Not yet in Makefile though.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-23 12:43:15 +04:00

20 lines
287 B
ArmAsm

#include "syscal-codes.h"
#define SIGSTOP 19
.code64
.global _start
_start:
1:
/*
* Simply put self into stopped state,
* the restorer will resume us anyway.
*/
movl $__NR_getpid, %eax
syscall
movl %eax, %edi
movl $__NR_kill, %eax
movl $SIGSTOP, %esi
syscall
jmp 1b