]> git.baikalelectronics.ru Git - kernel.git/commit
csky: Fixup PTE global for 2.5:1.5 virtual memory
authorGuo Ren <guoren@linux.alibaba.com>
Thu, 24 Dec 2020 00:12:06 +0000 (00:12 +0000)
committerGuo Ren <guoren@linux.alibaba.com>
Tue, 12 Jan 2021 01:52:40 +0000 (09:52 +0800)
commit56eba8c7f00586098f9a436e353edd432a3a1e38
treefc41dd4b7048e1b566c1184cf063e40c42cea941
parent7c8937417abd449cffde61cd39b232ab3b7d3161
csky: Fixup PTE global for 2.5:1.5 virtual memory

Fixup commit c2d1adfa9a24 "csky: Add memory layout 2.5G(user):1.5G
(kernel)". That patch broke the global bit in PTE.

C-SKY TLB's entry contain two pages:
vpn, vpn + 1 -> ppn0, ppn1

All PPN's attributes contain global bit and final global is PPN0.G
& PPN1.G. So we must keep PPN0.G and PPN1.G same in one TLB's
entry.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
arch/csky/include/asm/pgtable.h
arch/csky/mm/init.c