[USER] System calls

This commit is contained in:
thomas committed 2017-03-27 23:09:09 +02:00
1 parent 63b3c3f2c0
commit a7d2b24a79
9 files changed
+166 -2

No files matched your search

+4 -2
View File
@@ -1,8 +1,10 @@
#include <stdio.h>
#include <unistd.h>
int main(int argc, char **argv)
{
(void) argc;
(void) argv;
int i=0;
for(;;)i++;
asm("syscall" :: "a" (0x3FF), "D" ("Hello, world!\n"));
for(;;);
return 0;
}