summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/asm/fixmap.h
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2022-05-31 13:04:11 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2022-06-03 15:09:28 +0300
commit09cfefb7fa70c3af011b0db0a513fd80b2f18abc (patch)
treefc1a269ecba1f88cabb2e79ee92251612ed6605a /arch/loongarch/include/asm/fixmap.h
parent803b0fc5c3f2baa6e54978cd576407896f789b08 (diff)
downloadlinux-09cfefb7fa70c3af011b0db0a513fd80b2f18abc.tar.xz
LoongArch: Add memory management
Add memory management support for LoongArch, including: cache and tlb management, page fault handling and ioremap/mmap support. Reviewed-by: WANG Xuerui <git@xen0n.name> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include/asm/fixmap.h')
-rw-r--r--arch/loongarch/include/asm/fixmap.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/fixmap.h b/arch/loongarch/include/asm/fixmap.h
new file mode 100644
index 000000000000..b3541dfa2013
--- /dev/null
+++ b/arch/loongarch/include/asm/fixmap.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * fixmap.h: compile-time virtual memory allocation
+ *
+ * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
+ */
+
+#ifndef _ASM_FIXMAP_H
+#define _ASM_FIXMAP_H
+
+#define NR_FIX_BTMAPS 64
+
+#endif