From caf842864bdc0794e387f9580af96ab1036996f4 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Feb 2015 18:04:59 +0100 Subject: Change semantics of pd_map_page to return true on success, false on error. --- src/kernel/core/thread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/kernel/core/thread.c') 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); -- cgit v1.2.3