kern

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/test_proc.S	Mon Jul 25 11:29:57 2011 +0300
     1.3 @@ -0,0 +1,18 @@
     1.4 +#include <sysnum.h>
     1.5 +
     1.6 +	.text
     1.7 +	.globl test_proc
     1.8 +test_proc:
     1.9 +	/* --- print a message --- */
    1.10 +	movl $SYS_HELLO, %eax
    1.11 +	int $SYSCALL_INT
    1.12 +
    1.13 +	/* --- sleep for 5 seconds --- */
    1.14 +	movl $SYS_SLEEP, %eax
    1.15 +	movl $5, %ebx
    1.16 +	int $SYSCALL_INT
    1.17 +
    1.18 +	jmp test_proc
    1.19 +
    1.20 +	.globl test_proc_end
    1.21 +test_proc_end: