Nucleus
Barry Improved page fault handling and mmap system call 665af0a (3 years, 2 months ago)
diff --git a/memory/frame.c b/memory/frame.c
index c477121..2e063d5 100644
--- a/memory/frame.c
+++ b/memory/frame.c
@@ -108,8 +108,10 @@ alloc_frame(void)
if (idx != -1)
break;
}
- if (idx == -1)
+ if (idx == -1) {
+ panic("Could not allocate frame!");
return 0x00000000;
+ }
set_frame(region, idx);
return region->base + (idx << 12);