arm64: fix phys_to_virt() calculation to be the same as Linux.

Change-Id: Ibbe17d33fd80eacff990b053fa17d8d320c227f1
This commit is contained in:
Shiratori, Takehiro
2019-03-07 16:51:18 +09:00
parent 8880710fad
commit ac18a24a27
3 changed files with 6 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ uintptr_t virt_to_phys(uintptr_t va)
extern uintptr_t kernel_base;
if (va >= MAP_ST) {
return (va - MAP_ST);
return (va - MAP_ST + PHYS_OFFSET);
}
if (va >= MAP_KERNEL) {