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

Commit 5d87f493 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

x86/power/64: Use __pa() for physical address computation



The value of temp_level4_pgt is the physical address of the
top-level page directory, so use __pa() to compute it.

Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarIngo Molnar <mingo@kernel.org>
parent 947d2c2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ static int set_up_temporary_mappings(void)
			return result;
	}

	temp_level4_pgt = (unsigned long)pgd - __PAGE_OFFSET;
	temp_level4_pgt = __pa(pgd);
	return 0;
}