aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMarvin Borner2020-08-09 18:50:17 +0200
committerMarvin Borner2020-08-09 18:50:17 +0200
commitb933a9955a2a1eb0ab32b232e23d24dc207cba46 (patch)
treecb5871cb861a1e7eee8900a2ed81a9e33a3ce130 /apps
parent544acef0986977ef9d3a05d87bb9f55163b1280a (diff)
Added syscall templates
Diffstat (limited to 'apps')
-rw-r--r--apps/a.c3
-rw-r--r--apps/init.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/apps/a.c b/apps/a.c
index 040a454..5fef114 100644
--- a/apps/a.c
+++ b/apps/a.c
@@ -2,9 +2,12 @@
#include <def.h>
#include <print.h>
+#include <sys.h>
void main()
{
+ print("\nA loaded!\n");
+ sys0(SYS_HALT);
while (1) {
print("a");
}
diff --git a/apps/init.c b/apps/init.c
index 91f5083..2851e8e 100644
--- a/apps/init.c
+++ b/apps/init.c
@@ -2,12 +2,12 @@
#include <def.h>
#include <print.h>
-#include <str.h>
+#include <sys.h>
void main()
{
- print("Init loaded\n");
- __asm__ volatile("int $0x80");
+ print("Init loaded.\n");
+ sys1(SYS_EXEC, (int)"/a");
while (1) {
print("b");
};