aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/user/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/user/process.c')
-rw-r--r--src/kernel/user/process.c2
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();
}
}