summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Mamonov <pmamonov@gmail.com>2018-05-22 18:33:31 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2018-05-23 10:09:23 +0200
commit360b9fd79d3670806d8c3aa8b7cbc86548eaa676 (patch)
treeb439e883f6cd79e26afba73a0474a5cf8a3e3dc3
parent03f2a17b10d060ba545cb8e280c1092b5bfdae29 (diff)
downloadbarebox-360b9fd79d3670806d8c3aa8b7cbc86548eaa676.tar.gz
resource: fix iomem_resource.end for 64 bit systems
Fix iomem_resource.end to cover the whole address space addressable by a variable of type resource_size_t. Signed-off-by: Peter Mamonov <pmamonov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/resource.c b/common/resource.c
index e4bbe15..abc0814 100644
--- a/common/resource.c
+++ b/common/resource.c
@@ -114,7 +114,7 @@ int release_region(struct resource *res)
/* The root resource for the whole memory-mapped io space */
struct resource iomem_resource = {
.start = 0,
- .end = 0xffffffff,
+ .end = ~(resource_size_t)0,
.name = "iomem",
.children = LIST_HEAD_INIT(iomem_resource.children),
};