From 776f2473127211512262dfe868bfb4a4227fc43c Mon Sep 17 00:00:00 2001 From: neal Date: Mon, 31 Dec 2007 17:13:40 +0000 Subject: 2007-12-31 Neal H. Walfield * memory.h: Include . (memory_total): New declaration. * memory.c (memory_total): Define. (memory_grab): Before exiting, set memory_total to zalloc_memory. (memory_frame_allocate): If zalloc fails, panic. --- viengoos/memory.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'viengoos/memory.h') diff --git a/viengoos/memory.h b/viengoos/memory.h index a90965d..96f6baf 100644 --- a/viengoos/memory.h +++ b/viengoos/memory.h @@ -21,6 +21,7 @@ #ifndef RM_MEMORY_H #define RM_MEMORY_H +#include #include enum memory_reservation @@ -35,6 +36,9 @@ enum memory_reservation memory_reservation_modules, }; +/* Total number of frames. */ +extern uint32_t memory_total; + /* Address of the first byte of the first frame. */ extern l4_word_t first_frame; /* Address of the first byte of the last frame. */ -- cgit v1.2.3