Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1815aed5 authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Mask out top 8-bits in physical address when building resources.



These top 8-bits are supposed to be ignored in the ranges and
top-level reg properties on this platform.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a1d22d32
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -602,6 +602,9 @@ static void __init build_device_resources(struct of_device *op,
	build_res:
		memset(r, 0, sizeof(*r));
		if (result != OF_BAD_ADDR) {
			if (tlb_type == hypervisor)
				result &= 0x0fffffffffffffffUL;

			r->start = result;
			r->end = result + size - 1;
			r->flags = flags;