kern

view src/test_proc.S @ 44:7bc74736c7e8

added the first test process code and system call numbers header
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 25 Jul 2011 11:29:57 +0300
parents
children b1e8c8251884
line source
1 #include <sysnum.h>
3 .text
4 .globl test_proc
5 test_proc:
6 /* --- print a message --- */
7 movl $SYS_HELLO, %eax
8 int $SYSCALL_INT
10 /* --- sleep for 5 seconds --- */
11 movl $SYS_SLEEP, %eax
12 movl $5, %ebx
13 int $SYSCALL_INT
15 jmp test_proc
17 .globl test_proc_end
18 test_proc_end: