[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 3/7] arch, arm: let map_mmio_regions() take pfn as parameters
Hi Arianna, Thank you for the patch. On 03/25/2014 02:02 AM, Arianna Avanzini wrote: > Currently, the map_mmio_regions() function, defined for the ARM > architecture, has parameters with paddr_t type. This interface, > however, needs caller functions to correctly page-align addresses > given as parameters to map_mmio_regions(). This commit changes the > function's interface to accept page frame numbers as parameters. > This commit also modifies caller functions in an attempt to adapt > them to the new interface. > > NOTE: platform-specific code has not been tested. > > Signed-off-by: Arianna Avanzini <avanzini.arianna@xxxxxxxxx> > Cc: Dario Faggioli <dario.faggioli@xxxxxxxxxx> > Cc: Paolo Valente <paolo.valente@xxxxxxxxxx> > Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> > Cc: Julien Grall <julien.grall@xxxxxxxxxx> > Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx> > Cc: Jan Beulich <JBeulich@xxxxxxxx> > Cc: Keir Fraser <keir@xxxxxxx> > Cc: Tim Deegan <tim@xxxxxxx> > Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> > Cc: Eric Trudeau <etrudeau@xxxxxxxxxxxx> > Cc: Viktor Kleinik <viktor.kleinik@xxxxxxxxxxxxxxx> > --- > xen/arch/arm/domain_build.c | 7 ++++--- > xen/arch/arm/gic.c | 21 ++++++++++++--------- > xen/arch/arm/p2m.c | 13 ++++++++----- > xen/arch/arm/platforms/exynos5.c | 13 ++++++++----- > xen/arch/arm/platforms/omap5.c | 25 ++++++++++++++++--------- > xen/arch/arm/platforms/xgene-storm.c | 4 +++- > xen/include/asm-arm/p2m.h | 11 ++++++----- > 7 files changed, 57 insertions(+), 37 deletions(-) > > diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c > index 4a0411c..10f508d 100644 > --- a/xen/arch/arm/domain_build.c > +++ b/xen/arch/arm/domain_build.c > @@ -744,9 +744,10 @@ static int map_device(struct domain *d, const struct > dt_device_node *dev) > addr & PAGE_MASK, PAGE_ALIGN(addr + size) - 1); > return res; > } > - res = map_mmio_regions(d, addr & PAGE_MASK, > - PAGE_ALIGN(addr + size) - 1, > - addr & PAGE_MASK); > + res = map_mmio_regions(d, > + paddr_to_pfn(addr & PAGE_MASK), > + paddr_to_pfn(PAGE_ALIGN(addr + size - 1)), It would be nice a have a macro for paddr_to_pfn(PAGE_ALIGN(...)). You are using this pattern multiple times in the patch. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |