/* Add a memory region to the kernel e820 map.  */
static void __init __e820_add_region(struct e820map *e820x, u64 start, u64 size, int type)
/* Add a memory region to the kernel e820 map.  */
static void __init __e820_add_region(struct e820map *e820x, u64 start, u64 size, int type)
{
	int x = e820x->nr_map;
	if (x >= ARRAY_SIZE(e820x->map)) {
		printk(KERN_ERR "Ooops! Too many entries in the memory map!\n");
		return;
	}
	e820x->map[x].addr = start;
	e820x->map[x].size = size;
	e820x->map[x].type = type;
	e820x->nr_map++;
}