aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMarvin Borner2020-08-06 20:41:07 +0200
committerMarvin Borner2020-08-06 20:41:07 +0200
commit8c5fef6e00b0afe7a4f72fe9f8c72ade1ce4c673 (patch)
tree30c0f549b24afc456e1f0b028cecfee7796ccf2b /apps
parent9dbf8131d6aaff1617ef2bc7ebf54838f808688d (diff)
Some context switch fixes.
I'm quite tired actually and I don't seem to find my mistakes...
Diffstat (limited to 'apps')
-rw-r--r--apps/b.c5
-rw-r--r--apps/init.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/b.c b/apps/b.c
index 3de20bf..a0134bc 100644
--- a/apps/b.c
+++ b/apps/b.c
@@ -42,5 +42,8 @@ void serial_print(const char *data)
void main()
{
- serial_print("b");
+ serial_print("\nB loaded\n");
+ while (1) {
+ serial_print("b");
+ }
}
diff --git a/apps/init.c b/apps/init.c
index 1c7540c..bd33033 100644
--- a/apps/init.c
+++ b/apps/init.c
@@ -43,8 +43,7 @@ void serial_print(const char *data)
void main()
{
serial_print("Init loaded\n");
- /* __asm__ volatile("int $0x80"); */
+ __asm__ volatile("int $0x80");
while (1) {
- __asm__ volatile("hlt");
};
}