kern

view src/test_proc.S @ 51:b1e8c8251884

lalalala
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 01 Aug 2011 06:45:29 +0300
parents 7bc74736c7e8
children 0be4615594df
line source
1 #define ASM
2 #include <syscall.h>
4 .text
5 .globl test_proc
6 test_proc:
7 /* --- print a message --- */
8 movl $SYS_HELLO, %eax
9 int $SYSCALL_INT
11 /* --- sleep for 5 seconds --- */
12 movl $SYS_SLEEP, %eax
13 movl $5, %ebx
14 int $SYSCALL_INT
16 jmp test_proc
18 .globl test_proc_end
19 test_proc_end: