kern

annotate src/test_proc.S @ 51:b1e8c8251884

lalalala
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 01 Aug 2011 06:45:29 +0300
parents 7bc74736c7e8
children 0be4615594df
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@44 13 movl $5, %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: