kern

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