summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/include
diff options
context:
space:
mode:
authorMichael Brown2006-05-24 03:37:46 +0200
committerMichael Brown2006-05-24 03:37:46 +0200
commit77a65075a676d15daf81ad18b984090bbb76d838 (patch)
tree4c92a41d99128108448590e8ba271151a694e498 /src/arch/i386/include
parentCode to install the new E820 mangler (which doesn't require copying (diff)
downloadipxe-77a65075a676d15daf81ad18b984090bbb76d838.tar.gz
ipxe-77a65075a676d15daf81ad18b984090bbb76d838.tar.xz
ipxe-77a65075a676d15daf81ad18b984090bbb76d838.zip
Replaced memsizes.c with smaller memmap.c, taking advantage of __data16,
and creating a memory map that's easier to work with than the E820 map.
Diffstat (limited to 'src/arch/i386/include')
-rw-r--r--src/arch/i386/include/memmap.h23
-rw-r--r--src/arch/i386/include/memsizes.h2
2 files changed, 25 insertions, 0 deletions
diff --git a/src/arch/i386/include/memmap.h b/src/arch/i386/include/memmap.h
new file mode 100644
index 000000000..19492247f
--- /dev/null
+++ b/src/arch/i386/include/memmap.h
@@ -0,0 +1,23 @@
+#ifndef _MEMMAP_H
+#define _MEMMAP_H
+
+#include <stdint.h>
+
+/**
+ * @file
+ *
+ * Memory mapping
+ *
+ */
+
+/** A usable memory region */
+struct memory_region {
+ /** Physical start address */
+ uint64_t start;
+ /** Physical end address */
+ uint64_t end;
+};
+
+extern void get_memmap ( struct memory_region *memmap, unsigned int entries );
+
+#endif /* _MEMMAP_H */
diff --git a/src/arch/i386/include/memsizes.h b/src/arch/i386/include/memsizes.h
index a5bb3f2df..e64009ea7 100644
--- a/src/arch/i386/include/memsizes.h
+++ b/src/arch/i386/include/memsizes.h
@@ -1,6 +1,8 @@
#ifndef MEMSIZES_H
#define MEMSIZES_H
+#warning "This header is no longer functional; use memmap.h instead"
+
/*
* These structures seem to be very i386 (and, in fact, PCBIOS)
* specific, so I've moved them out of etherboot.h.