kern
view src/test_proc.S @ 56:0be4615594df
finally, runqueues, blocking, waking up, idle loop etc, all seem to work fine
on a single user process... Next up: try forking another one :)
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 15 Aug 2011 06:17:58 +0300 |
parents | b1e8c8251884 |
children | 437360696883 |
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 $3, %ebx
14 int $SYSCALL_INT
16 jmp test_proc
18 .globl test_proc_end
19 test_proc_end: