kern

view src/test_proc.S @ 52:fa65b4f45366

picking this up again, let's fix it
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 07 Aug 2011 06:42:00 +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: