kern
annotate 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 |
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: |