diff options
Diffstat (limited to 'kernel/features/mm.c')
-rw-r--r-- | kernel/features/mm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/features/mm.c b/kernel/features/mm.c index 736a5a4..64a7523 100644 --- a/kernel/features/mm.c +++ b/kernel/features/mm.c @@ -194,7 +194,7 @@ struct memory_range physical_alloc(u32 size) } } - panic("Out of physical memory!\n"); + panic("Out of physical memory (%d of %d)!\n", memory_used, memory_total); return memory_range(0, 0); } @@ -204,6 +204,11 @@ void physical_free(struct memory_range range) physical_set_free(range); } +void physical_print(void) +{ + printf("%d of %d\n", memory_used, memory_total); +} + /** * Virtual */ |