diff options
author | Marvin Borner | 2020-08-06 20:41:07 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-06 20:41:07 +0200 |
commit | 8c5fef6e00b0afe7a4f72fe9f8c72ade1ce4c673 (patch) | |
tree | 30c0f549b24afc456e1f0b028cecfee7796ccf2b /apps | |
parent | 9dbf8131d6aaff1617ef2bc7ebf54838f808688d (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.c | 5 | ||||
-rw-r--r-- | apps/init.c | 3 |
2 files changed, 5 insertions, 3 deletions
@@ -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"); }; } |