summaryrefslogtreecommitdiff
path: root/viengoos/memory.h
diff options
context:
space:
mode:
authorneal <neal>2007-12-31 17:13:40 +0000
committerneal <neal>2007-12-31 17:13:40 +0000
commit776f2473127211512262dfe868bfb4a4227fc43c (patch)
tree8a9d0a551aaeea35259d0f6db9abf041efb3ec52 /viengoos/memory.h
parent760646c8ab8ad8971a0896117fe877191d4d6405 (diff)
2007-12-31 Neal H. Walfield <neal@gnu.org>
* memory.h: Include <stdint.h>. (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.
Diffstat (limited to 'viengoos/memory.h')
-rw-r--r--viengoos/memory.h4
1 files changed, 4 insertions, 0 deletions
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 <stdint.h>
#include <l4.h>
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. */