kern
view src/test_proc.S @ 49:50730d42d2d3
fuck yeah, now do priviledge levels and TSS
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 30 Jul 2011 07:21:54 +0300 |
parents | |
children | b1e8c8251884 |
line source
1 #include <sysnum.h>
3 .text
4 .globl test_proc
5 test_proc:
6 /* --- print a message --- */
7 movl $SYS_HELLO, %eax
8 int $SYSCALL_INT
10 /* --- sleep for 5 seconds --- */
11 movl $SYS_SLEEP, %eax
12 movl $5, %ebx
13 int $SYSCALL_INT
15 jmp test_proc
17 .globl test_proc_end
18 test_proc_end: