aboutsummaryrefslogtreecommitdiff
path: root/apps/init.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-09 21:55:42 +0200
committerMarvin Borner2020-08-09 21:55:42 +0200
commitf163a5d5f6802f63092229f0f9326e5fb44b7908 (patch)
treef24ccfe1b9bd340875d534e1aa19ef8676fd4d7b /apps/init.c
parentb6d3d341c19440f8447d8d6c6567b7ff78db3174 (diff)
Added malloc/free syscall
Diffstat (limited to 'apps/init.c')
-rw-r--r--apps/init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/init.c b/apps/init.c
index 2851e8e..813021b 100644
--- a/apps/init.c
+++ b/apps/init.c
@@ -1,13 +1,17 @@
// MIT License, Copyright (c) 2020 Marvin Borner
#include <def.h>
+#include <mem.h>
#include <print.h>
#include <sys.h>
void main()
{
print("Init loaded.\n");
- sys1(SYS_EXEC, (int)"/a");
+
+ printf("%x %d %b\n ABC %s", 42, 42, 42, "BAUM");
+ sys0(SYS_LOOP);
+ /* sys1(SYS_EXEC, (int)"/a"); */
while (1) {
print("b");
};