linux_dsm_epyc7002/arch/csky
Guo Ren 63e19c8216 csky: bugfix tlb_get_pgd error.
It's wrong to mask/unmask highest bit in addr to translate the vaddr
to paddr. We should use PAGE_OFFSET and PHYS_OFFSET.

Wrong implement:
  return ((get_pgd()|(1<<31)) - PHYS_OFFSET) & ~1;

When PHYS_OFFSET=0xc0000000 and get_pgd() return 0xe0000000, it'll
return 0x60000000. It's wrong and should be 0xa0000000.

Now correct it to:
  return ((get_pgd() - PHYS_OFFSET) & ~1) + PAGE_OFFSET;

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
2018-12-03 10:49:11 +08:00
..
abiv1 csky: Misc headers 2018-10-26 00:54:26 +08:00
abiv2 csky: Misc headers 2018-10-26 00:54:26 +08:00
boot csky: use common dtb build rules 2018-11-01 10:52:27 +08:00
configs csky: defconfig 2018-10-25 23:36:19 +08:00
include csky: bugfix tlb_get_pgd error. 2018-12-03 10:49:11 +08:00
kernel mm: remove CONFIG_HAVE_MEMBLOCK 2018-10-31 08:54:15 -07:00
lib csky: User access 2018-10-26 00:54:25 +08:00
mm mm: remove CONFIG_HAVE_MEMBLOCK 2018-10-31 08:54:15 -07:00
Kconfig mm: remove CONFIG_HAVE_MEMBLOCK 2018-10-31 08:54:15 -07:00
Kconfig.debug csky: remove builtin-dtb Kbuild 2018-11-01 10:52:26 +08:00
Makefile csky: use common dtb build rules 2018-11-01 10:52:27 +08:00