diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-14 16:16:53 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-14 16:16:53 +0100 |
commit | 57c5eceb846f3109d017b4e6d4cbd7c507c0d098 (patch) | |
tree | d4aa0917310a5ad7925736f9dadc07bcb5734383 /src/kernel/user | |
parent | f574c22f86d90f735107fda199bb5b4982cd9621 (diff) | |
download | kogata-57c5eceb846f3109d017b4e6d4cbd7c507c0d098.tar.gz kogata-57c5eceb846f3109d017b4e6d4cbd7c507c0d098.zip |
Begin implement escape sequence handling in terminal.
Diffstat (limited to 'src/kernel/user')
-rw-r--r-- | src/kernel/user/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/user/process.c b/src/kernel/user/process.c index d96b486..7b0c351 100644 --- a/src/kernel/user/process.c +++ b/src/kernel/user/process.c @@ -794,11 +794,13 @@ void proc_usermem_pf(void* p, registers_t *regs, void* addr) { do { frame = pager_get_frame(r->pager, addr - r->addr + r->offset); if (frame == 0) { + if (SPAM_OOM_REASON) dbg_printf("Pager OOM\n"); free_some_memory(); } } while (frame == 0); while(!pd_map_page(addr, frame, (r->mode & MM_WRITE) != 0)) { + if (SPAM_OOM_REASON) dbg_printf("pd_map_page OOM\n"); free_some_memory(); } } |