search for: e820_add_rang

Displaying 1 result from an estimated 1 matches for "e820_add_rang".

Did you mean: e820_add_range
2011 Jul 19
0
[PATCH 2/3] x86-64/MMCFG: finally make Fam10 enabling work
...return 0; --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -563,6 +563,55 @@ static void __init machine_specific_memo clip_to_limit(top_of_ram, "MTRRs do not cover all of memory."); } +/* This function relies on the passed in e820->map[] being sorted. */ +int __init e820_add_range( + struct e820map *e820, uint64_t s, uint64_t e, uint32_t type) +{ + unsigned int i; + + for ( i = 0; i < e820->nr_map; ++i ) + { + uint64_t rs = e820->map[i].addr; + uint64_t re = rs + e820->map[i].size; + + if ( rs == e && e820->map[i].type...