Message ID | 20230425075655.4037980-5-Henry.Wang@arm.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Device tree based NUMA support for Arm - Part#3 | expand |
diff --git a/xen/arch/arm/numa.c b/xen/arch/arm/numa.c index e4f75f314b..3fee3789c7 100644 --- a/xen/arch/arm/numa.c +++ b/xen/arch/arm/numa.c @@ -103,3 +103,14 @@ unsigned char __node_distance(nodeid_t from, nodeid_t to) return node_distance_map[from][to]; } + +int __init arch_get_ram_range(unsigned int idx, paddr_t *start, paddr_t *end) +{ + if ( idx >= bootinfo.mem.nr_banks ) + return -ENOENT; + + *start = bootinfo.mem.bank[idx].start; + *end = *start + bootinfo.mem.bank[idx].size; + + return 0; +}