|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen: arm: correct off by one in xgene-storm's map_one_mmio
commit 0f25d1b324b7922094c9e1bde78d7df01d57dadc
Author: Ian Campbell <ian.campbell@xxxxxxxxxx>
AuthorDate: Wed Nov 19 15:28:13 2014 +0000
Commit: Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Thu Nov 20 15:38:48 2014 +0000
xen: arm: correct off by one in xgene-storm's map_one_mmio
The callers pass the end as the pfn immediately *after* the last page to be
mapped, therefore adding one is incorrect and causes an additional page to
be
mapped.
At the same time correct the printing of the mfn values, zero-padding them
to
16 digits as for a paddr when they are frame numbers is just confusing.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Reviewed-by: Julien Grall <julien.grall@xxxxxxxxxx>
---
xen/arch/arm/platforms/xgene-storm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/xen/arch/arm/platforms/xgene-storm.c
b/xen/arch/arm/platforms/xgene-storm.c
index 29c4752..8685c93 100644
--- a/xen/arch/arm/platforms/xgene-storm.c
+++ b/xen/arch/arm/platforms/xgene-storm.c
@@ -45,11 +45,11 @@ static int map_one_mmio(struct domain *d, const char *what,
{
int ret;
- printk("Additional MMIO %"PRIpaddr"-%"PRIpaddr" (%s)\n",
+ printk("Additional MMIO %lx-%lx (%s)\n",
start, end, what);
- ret = map_mmio_regions(d, start, end - start + 1, start);
+ ret = map_mmio_regions(d, start, end - start, start);
if ( ret )
- printk("Failed to map %s @ %"PRIpaddr" to dom%d\n",
+ printk("Failed to map %s @ %lx to dom%d\n",
what, start, d->domain_id);
return ret;
}
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |