summaryrefslogtreecommitdiff
path: root/src/kernel/mem/paging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/mem/paging.c')
-rw-r--r--src/kernel/mem/paging.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/mem/paging.c b/src/kernel/mem/paging.c
index 5953fc6..0527f06 100644
--- a/src/kernel/mem/paging.c
+++ b/src/kernel/mem/paging.c
@@ -1,6 +1,6 @@
#include "paging.h"
#include <bitset.h>
-#include <stdlib.h>
+#include <stdlib_common.h>
#include <core/monitor.h>
#include "mem.h"
#include "seg.h"
@@ -17,7 +17,7 @@ struct page_directory *kernel_pagedir, *current_pagedir;
uint32_t frame_alloc() {
uint32_t free = bitset_firstFree(&frames);
if (free == (uint32_t) -1) {
- PANIC("Out of memory!");
+ PANIC("No more frames to allocate, system is out of memory!");
}
bitset_set(&frames, free);
return free;
@@ -166,7 +166,6 @@ struct page *pagedir_getPage(struct page_directory *pd, uint32_t address, int ma
pd->tablesPhysical[table_idx] |= 0x07;
if (table_idx >= FIRST_KERNEL_PAGETABLE) {
- monitor_write("UKPI ");
tasking_updateKernelPagetable(table_idx, pd->tables[table_idx], pd->tablesPhysical[table_idx]);
}