aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/core/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/core/thread.c')
-rw-r--r--src/kernel/core/thread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c
index 7f0bb5b..3f25add 100644
--- a/src/kernel/core/thread.c
+++ b/src/kernel/core/thread.c
@@ -129,7 +129,10 @@ thread_t *new_thread(entry_t entry, void* data) {
free(t);
return 0;
}
- pd_map_page(i, f, true);
+ bool map_ok = pd_map_page(i, f, true);
+ if (!map_ok) {
+ PANIC("TODO");
+ }
}
t->stack_region = find_region(stack);