hello-arm.c revision 8d3f9624838fe3f51aa71276ada9759b407a0ad3
#define __NR_SYSCALL_BASE 0x900000
#define __sys2(x) #x
#ifndef __syscall
#endif
do { \
} while (0)
long __res; \
__asm__ __volatile__ ( \
"mov %0,r0" \
}
long __res; \
__asm__ __volatile__ ( \
"mov\tr0,%1\n\t" \
"mov %0,r0" \
: "=r" (__res) \
: "r" ((long)(arg1)) \
: "r0","lr"); \
}
long __res; \
__asm__ __volatile__ ( \
"mov\tr0,%1\n\t" \
"mov\tr1,%2\n\t" \
"mov\t%0,r0" \
: "=r" (__res) \
: "r0","r1","lr"); \
}
long __res; \
__asm__ __volatile__ ( \
"mov\tr0,%1\n\t" \
"mov\tr1,%2\n\t" \
"mov\tr2,%3\n\t" \
"mov\t%0,r0" \
: "=r" (__res) \
: "r0","r1","r2","lr"); \
}
long __res; \
__asm__ __volatile__ ( \
"mov\tr0,%1\n\t" \
"mov\tr1,%2\n\t" \
"mov\tr2,%3\n\t" \
"mov\tr3,%4\n\t" \
"mov\t%0,r0" \
: "=r" (__res) \
: "r0","r1","r2","r3","lr"); \
}
long __res; \
__asm__ __volatile__ ( \
"mov\tr0,%1\n\t" \
"mov\tr1,%2\n\t" \
"mov\tr2,%3\n\t" \
"mov\tr3,%4\n\t" \
"mov\tr4,%5\n\t" \
"mov\t%0,r0" \
: "=r" (__res) \
"r" ((long)(arg5)) \
: "r0","r1","r2","r3","r4","lr"); \
}
void _start(void)
{
exit1(0);
}