1 #include <asm/unistd.h>
3 extern inline volatile void exit(int status
)
6 __asm__
volatile ("movl %%ecx,%%ebx\n"\
8 : "=a" (__res
) : "0" (__NR_exit
),"c" ((long)(status
)));
11 extern inline int write(int fd
, const char * buf
, int len
)
14 __asm__
volatile ("pushl %%ebx\n"\
19 : "0" (__NR_write
),"S" ((long)(fd
)),"c" ((long)(buf
)),"d" ((long)(len
)));
24 write(1, "Hello World\n", 12);