xref: /kernel/linux/linux-5.10/arch/csky/include/asm/memory.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/csky/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci#ifndef __ASM_CSKY_MEMORY_H
48c2ecf20Sopenharmony_ci#define __ASM_CSKY_MEMORY_H
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <linux/compiler.h>
78c2ecf20Sopenharmony_ci#include <linux/const.h>
88c2ecf20Sopenharmony_ci#include <linux/types.h>
98c2ecf20Sopenharmony_ci#include <linux/sizes.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define FIXADDR_TOP	_AC(0xffffc000, UL)
128c2ecf20Sopenharmony_ci#define PKMAP_BASE	_AC(0xff800000, UL)
138c2ecf20Sopenharmony_ci#define VMALLOC_START	_AC(0xc0008000, UL)
148c2ecf20Sopenharmony_ci#define VMALLOC_END	(PKMAP_BASE - (PAGE_SIZE * 2))
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#ifdef CONFIG_HAVE_TCM
178c2ecf20Sopenharmony_ci#ifdef CONFIG_HAVE_DTCM
188c2ecf20Sopenharmony_ci#define TCM_NR_PAGES	(CONFIG_ITCM_NR_PAGES + CONFIG_DTCM_NR_PAGES)
198c2ecf20Sopenharmony_ci#else
208c2ecf20Sopenharmony_ci#define TCM_NR_PAGES	(CONFIG_ITCM_NR_PAGES)
218c2ecf20Sopenharmony_ci#endif
228c2ecf20Sopenharmony_ci#define FIXADDR_TCM	_AC(FIXADDR_TOP - (TCM_NR_PAGES * PAGE_SIZE), UL)
238c2ecf20Sopenharmony_ci#endif
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif
26

Indexes created Thu Nov 07 10:32:03 CST 2024