kern
annotate 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 |
rev | line source |
---|---|
nuclear@44 | 1 #include <sysnum.h> |
nuclear@44 | 2 |
nuclear@44 | 3 .text |
nuclear@44 | 4 .globl test_proc |
nuclear@44 | 5 test_proc: |
nuclear@44 | 6 /* --- print a message --- */ |
nuclear@44 | 7 movl $SYS_HELLO, %eax |
nuclear@44 | 8 int $SYSCALL_INT |
nuclear@44 | 9 |
nuclear@44 | 10 /* --- sleep for 5 seconds --- */ |
nuclear@44 | 11 movl $SYS_SLEEP, %eax |
nuclear@44 | 12 movl $5, %ebx |
nuclear@44 | 13 int $SYSCALL_INT |
nuclear@44 | 14 |
nuclear@44 | 15 jmp test_proc |
nuclear@44 | 16 |
nuclear@44 | 17 .globl test_proc_end |
nuclear@44 | 18 test_proc_end: |