BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 665af0a43af0d406733bda816ca1a7b2f9184319 / memory / frame.c

// Related

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);