aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/core/thread.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-09 18:04:59 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-09 18:04:59 +0100
commitcaf842864bdc0794e387f9580af96ab1036996f4 (patch)
tree92b1e05e5ed79628132e320dcaa84a25eebd0dd7 /src/kernel/core/thread.c
parent3b03f1e41558131ca2f83a460f4d2e289cbedac0 (diff)
downloadkogata-caf842864bdc0794e387f9580af96ab1036996f4.tar.gz
kogata-caf842864bdc0794e387f9580af96ab1036996f4.zip
Change semantics of pd_map_page to return true on success, false on error.
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);