linux/arch/csky/include/asm
Guo Ren af94002bda csky: Fixup swapon
Current csky's swappon is broken by wrong swap PTE entry format.
Now redesign the new format for abiv1 & abiv2 and make swappon +
zram work properly on csky machines.

C-SKY PTE has VALID, DIRTY to emulate PRESENT, READ, WRITE, EXEC
attributes. GLOBAL bit is shared by two pages in the same tlb
entry. So we need to keep GLOBAL, VALID, PRESENT zero in swp_pte.

To distinguish PAGE_NONE and swp_pte, we need to use an additional
bit (abiv1 is _PAGE_READ, abiv2 is _PAGE_WRITE).

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Arnd Bergmann <arnd@arndb.de>
2021-02-27 16:32:54 +08:00
..
addrspace.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
asid.h csky: Add new asid lib code from arm 2019-07-19 14:21:36 +08:00
barrier.h csky: Fixup barrier design 2021-01-12 09:52:40 +08:00
bitops.h fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
bug.h csky: Sync riscv mm/fault.c for easy maintenance 2021-01-12 09:52:41 +08:00
cache.h csky: Support icache flush without specific instructions 2020-02-21 15:43:24 +08:00
cacheflush.h csky: Add flush_icache_mm to defer flush icache all 2020-02-21 15:43:24 +08:00
checksum.h csky: Misc headers 2018-10-26 00:54:26 +08:00
cmpxchg.h csky: Fixup asm/cmpxchg.h with correct ordering barrier 2021-01-12 09:52:40 +08:00
elf.h whack-a-mole: USE_ELF_CORE_DUMP 2020-10-25 20:03:05 -04:00
fixmap.h csky/mm/highmem: Switch to generic kmap atomic 2020-11-06 23:14:56 +01:00
ftrace.h csky: Implement ftrace with regs 2020-03-08 20:55:14 +08:00
futex.h csky: Fixup futex SMP implementation 2021-01-12 09:52:40 +08:00
highmem.h csky/mm/highmem: Switch to generic kmap atomic 2020-11-06 23:14:56 +01:00
io.h mm: introduce include/linux/pgtable.h 2020-06-09 09:39:13 -07:00
irq_work.h csky: Add irq_work support 2020-07-31 01:55:46 +00:00
irqflags.h csky: IRQ handling 2018-10-26 00:54:22 +08:00
Kbuild local64.h: make <asm/local64.h> mandatory 2020-12-29 15:36:49 -08:00
kprobes.h csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
memory.h csky: Add memory layout 2.5G(user):1.5G(kernel) 2021-01-12 09:52:40 +08:00
mmu_context.h csky: Fix TLB maintenance synchronization problem 2021-01-12 09:52:41 +08:00
mmu.h csky: Add flush_icache_mm to defer flush icache all 2020-02-21 15:43:24 +08:00
page.h csky: Add memory layout 2.5G(user):1.5G(kernel) 2021-01-12 09:52:40 +08:00
pci.h csky: Add PCI support 2020-02-21 15:43:25 +08:00
perf_event.h csky: Add perf_arch_fetch_caller_regs support 2019-04-22 13:44:57 +08:00
pgalloc.h csky: Add memory layout 2.5G(user):1.5G(kernel) 2021-01-12 09:52:40 +08:00
pgtable.h csky: Fixup swapon 2021-02-27 16:32:54 +08:00
probes.h csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
processor.h csky: Add memory layout 2.5G(user):1.5G(kernel) 2021-01-12 09:52:40 +08:00
ptrace.h csky: Optimize the trap processing flow 2020-07-31 01:52:22 +00:00
reg_ops.h csky: Misc headers 2018-10-26 00:54:26 +08:00
seccomp.h csky: Enable seccomp architecture tracking 2020-11-20 11:16:34 -08:00
segment.h csky: Add memory layout 2.5G(user):1.5G(kernel) 2021-01-12 09:52:40 +08:00
shmparam.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
smp.h csky: CPU-hotplug supported for SMP 2018-12-31 23:03:53 +08:00
spinlock_types.h csky: Cleanup asm/spinlock.h 2021-01-12 09:52:40 +08:00
spinlock.h csky: Cleanup asm/spinlock.h 2021-01-12 09:52:40 +08:00
stackprotector.h csky: Initial stack protector support 2020-02-21 15:43:24 +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 arch/csky patches for 5.2-rc1 2019-05-08 11:41:08 -07:00
syscalls.h csky: System Call 2018-10-25 23:36:19 +08:00
tcm.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2020-10-25 14:51:49 -07:00
thread_info.h csky: remove unused including <linux/version.h> 2021-01-12 09:52:41 +08:00
tlb.h csky: add missing brackets in a macro for tlb.h 2019-09-07 04:28:05 -03:00
tlbflush.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
traps.h
uaccess.h csky: Fixup raw_copy_from_user() 2020-05-15 00:16:30 +08:00
unistd.h csky: Update syscall_trace_enter/exit implementation 2019-04-22 13:44:57 +08:00
uprobes.h csky: Add uprobes support 2020-04-03 11:37:51 +08:00
vdso.h csky: Reconstruct VDSO framework 2021-01-12 09:52:41 +08:00
vmalloc.h mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00