if ( ret )
goto err;
- ret = make_resv_memory_node(d, kinfo->fdt, addrcells, sizecells,
- &kinfo->shm_mem);
+ ret = make_resv_memory_node(kinfo, addrcells, sizecells);
if ( ret )
goto err;
return res;
}
- res = make_resv_memory_node(d, kinfo->fdt, addrcells, sizecells,
- &kinfo->shm_mem);
+ res = make_resv_memory_node(kinfo, addrcells, sizecells);
if ( res )
return res;
}
#ifdef CONFIG_STATIC_SHM
-int make_resv_memory_node(const struct domain *d, void *fdt, int addrcells,
- int sizecells, const struct meminfo *mem);
+int make_resv_memory_node(const struct kernel_info *kinfo, int addrcells,
+ int sizecells);
int process_shm(struct domain *d, struct kernel_info *kinfo,
const struct dt_device_node *node);
#else /* !CONFIG_STATIC_SHM */
-static inline int make_resv_memory_node(const struct domain *d, void *fdt,
- int addrcells, int sizecells,
- const struct meminfo *mem)
+static inline int make_resv_memory_node(const struct kernel_info *kinfo,
+ int addrcells, int sizecells)
{
return 0;
}
return 0;
}
-static int __init make_shm_memory_node(const struct domain *d, void *fdt,
- int addrcells, int sizecells,
- const struct meminfo *mem)
+static int __init make_shm_memory_node(const struct kernel_info *kinfo,
+ int addrcells, int sizecells)
{
+ const struct meminfo *mem = &kinfo->shm_mem;
+ void *fdt = kinfo->fdt;
unsigned int i = 0;
int res = 0;
return 0;
}
-int __init make_resv_memory_node(const struct domain *d, void *fdt,
- int addrcells, int sizecells,
- const struct meminfo *mem)
+int __init make_resv_memory_node(const struct kernel_info *kinfo, int addrcells,
+ int sizecells)
{
+ const struct meminfo *mem = &kinfo->shm_mem;
+ void *fdt = kinfo->fdt;
int res = 0;
/* Placeholder for reserved-memory\0 */
const char resvbuf[16] = "reserved-memory";
if ( res )
return res;
- res = make_shm_memory_node(d, fdt, addrcells, sizecells, mem);
+ res = make_shm_memory_node(kinfo, addrcells, sizecells);
if ( res )
return res;