aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMarvin Borner2020-08-05 22:03:17 +0200
committerMarvin Borner2020-08-05 22:03:17 +0200
commit1272295d0c611f04128f9e388d5a0468dc64dae0 (patch)
treed596710ce147e36e07f427fda0ad5ecea31ee6d7 /apps
parent835960fd85989ee961b5a932f467e6e4f545d201 (diff)
I don't really know what's happening
Diffstat (limited to 'apps')
-rw-r--r--apps/a.c4
-rw-r--r--apps/init.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/a.c b/apps/a.c
index f09bb96..d9e68f8 100644
--- a/apps/a.c
+++ b/apps/a.c
@@ -42,5 +42,7 @@ void serial_print(const char *data)
void main()
{
- serial_print("a");
+ while (1) {
+ serial_print("a");
+ }
}
diff --git a/apps/init.c b/apps/init.c
index bd33033..859ffe8 100644
--- a/apps/init.c
+++ b/apps/init.c
@@ -45,5 +45,6 @@ void main()
serial_print("Init loaded\n");
__asm__ volatile("int $0x80");
while (1) {
+ __asm__ volatile("hlt");
};
}