/* called very early in the boot process to fetch data out of the multiboot info struct. we need to grab the relevant data before any dynamic memory allocation takes place, lest the struct itself or any data it points to be overwritten before we read it.  */
static void clear_memmap(int index)
/* called very early in the boot process to fetch data out of the multiboot info struct. we need to grab the relevant data before any dynamic memory allocation takes place, lest the struct itself or any data it points to be overwritten before we read it.  */
static void clear_memmap(int index)
{
	while (index < CONFIG_X86_MEMMAP_ENTRIES) {
		x86_memmap[index].type = X86_MEMMAP_ENTRY_UNUSED;
		++index;
	}
}