hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/riscv/include/asm/mmu.h
....@@ -1,14 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2012 Regents of the University of California
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation, version 2.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 */
135
146
....@@ -18,6 +10,9 @@
1810 #ifndef __ASSEMBLY__
1911
2012 typedef struct {
13
+#ifndef CONFIG_MMU
14
+ unsigned long end_brk;
15
+#endif
2116 void *vdso;
2217 #ifdef CONFIG_SMP
2318 /* A local icache flush is needed before user execution can resume. */
....@@ -25,6 +20,8 @@
2520 #endif
2621 } mm_context_t;
2722
23
+void __init create_pgd_mapping(pgd_t *pgdp, uintptr_t va, phys_addr_t pa,
24
+ phys_addr_t sz, pgprot_t prot);
2825 #endif /* __ASSEMBLY__ */
2926
3027 #endif /* _ASM_RISCV_MMU_H */