linux_dsm_epyc7002/arch/csky/include/asm
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
..
addrspace.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
atomic.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
barrier.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
bitops.h csky: Misc headers 2018-10-26 00:54:26 +08:00
bug.h csky: Debug and Ptrace GDB 2018-10-26 00:54:25 +08:00
cache.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
cacheflush.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
checksum.h csky: Misc headers 2018-10-26 00:54:26 +08:00
cmpxchg.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
elf.h csky: ELF and module probe 2018-10-26 00:54:23 +08:00
fixmap.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
highmem.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
io.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
irqflags.h csky: IRQ handling 2018-10-26 00:54:22 +08:00
Kbuild
mmu_context.h csky: bugfix tlb_get_pgd error. 2018-12-03 10:49:11 +08:00
mmu.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
page.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
pgalloc.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
pgtable.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
processor.h treewide: remove current_text_addr 2018-10-31 08:54:12 -07:00
reg_ops.h csky: Misc headers 2018-10-26 00:54:26 +08:00
segment.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
shmparam.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
smp.h csky: SMP support 2018-10-26 00:54:26 +08:00
spinlock_types.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
spinlock.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
string.h csky: Library functions 2018-10-26 00:54:24 +08:00
switch_to.h csky: Process management and Signal 2018-10-26 00:54:13 +08:00
syscall.h csky: System Call 2018-10-25 23:36:19 +08:00
syscalls.h csky: System Call 2018-10-25 23:36:19 +08:00
thread_info.h csky: Process management and Signal 2018-10-26 00:54:13 +08:00
tlb.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
tlbflush.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
traps.h csky: Exception handling and mm-fault 2018-10-25 23:36:19 +08:00
uaccess.h csky: User access 2018-10-26 00:54:25 +08:00
unistd.h csky: Exception handling and mm-fault 2018-10-25 23:36:19 +08:00
vdso.h csky: VDSO and rt_sigreturn 2018-10-26 00:54:22 +08:00