summaryrefslogtreecommitdiff
path: root/i386/include
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-06-10 00:33:31 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-06-10 00:33:31 +0200
commit49d0e47087bd60a2ceae246258d803197d105d31 (patch)
tree5536bc5b56c46272fd11caec0f4cafba55c8f40d /i386/include
parent69498acfbb9e9e80dde3e0b777e5b4f00b73b1a9 (diff)
Add non-contiguous mmap support
* i386/include/mach/i386/multiboot.h (multiboot_mmap): New structure * i386/i386at/model_dep.c (mem_size_init): Parse boot_info.mmap_addr if available. (init_alloc_aligned): Likewise.
Diffstat (limited to 'i386/include')
-rw-r--r--i386/include/mach/i386/multiboot.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/i386/include/mach/i386/multiboot.h b/i386/include/mach/i386/multiboot.h
index 7aa0b1c..8f1c47b 100644
--- a/i386/include/mach/i386/multiboot.h
+++ b/i386/include/mach/i386/multiboot.h
@@ -175,6 +175,16 @@ struct AddrRangeDesc
/* unspecified optional padding... */
};
+struct multiboot_mmap
+{
+ unsigned long size;
+ unsigned long long BaseAddr;
+ unsigned long long Length;
+ unsigned long Type;
+
+ /* unspecified optional padding... */
+};
+
/* usable memory "Type", all others are reserved. */
#define MB_ARD_MEMORY 1