Skip to content

Commit

Permalink
resource: fix iomem_resource.end for 64 bit systems
Browse files Browse the repository at this point in the history
Fix iomem_resource.end to cover the whole address space addressable by a
variable of type resource_size_t.

Signed-off-by: Peter Mamonov <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
pmamonov authored and saschahauer committed May 23, 2018
1 parent 03f2a17 commit 360b9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down

0 comments on commit 360b9fd

Please sign in to comment.