diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-07 11:49:52 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-07 11:49:52 +0100 |
commit | d7aaba8c85cc71f3184cddcf20b740c5157c864d (patch) | |
tree | d99c9d6765eb433c73498c5e99ebcdb088c0e7e6 /kernel/l0/region.c | |
parent | 26b68c108664cb54089613bdbc54624ed66f7fda (diff) | |
download | kogata-d7aaba8c85cc71f3184cddcf20b740c5157c864d.tar.gz kogata-d7aaba8c85cc71f3184cddcf20b740c5157c864d.zip |
Refactor kmalloc & tests in kmain.
Diffstat (limited to 'kernel/l0/region.c')
-rw-r--r-- | kernel/l0/region.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/l0/region.c b/kernel/l0/region.c index aa73a22..3691747 100644 --- a/kernel/l0/region.c +++ b/kernel/l0/region.c @@ -336,6 +336,8 @@ region_info_t *find_region(void* addr) { void stack_pf_handler(pagedir_t *pd, struct region_info *r, void* addr) { if (addr < r->addr + PAGE_SIZE) { dbg_printf("Stack overflow at 0x%p.", addr); + if (r->type & REGION_T_KPROC_STACK) dbg_printf(" (in kernel process stack)\n"); + if (r->type & REGION_T_PROC_KSTACK) dbg_printf(" (in process kernel stack)\n"); dbg_print_region_stats(); PANIC("Stack overflow."); } |