linux/arch/csky/include/asm/memory.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2
   3#ifndef __ASM_CSKY_MEMORY_H
   4#define __ASM_CSKY_MEMORY_H
   5
   6#include <linux/compiler.h>
   7#include <linux/const.h>
   8#include <linux/types.h>
   9#include <linux/sizes.h>
  10
  11#define FIXADDR_TOP     _AC(0xffffc000, UL)
  12#define PKMAP_BASE      _AC(0xff800000, UL)
  13#define VMALLOC_START   (PAGE_OFFSET + LOWMEM_LIMIT + (PAGE_SIZE * 8))
  14#define VMALLOC_END     (PKMAP_BASE - (PAGE_SIZE * 2))
  15
  16#ifdef CONFIG_HAVE_TCM
  17#ifdef CONFIG_HAVE_DTCM
  18#define TCM_NR_PAGES    (CONFIG_ITCM_NR_PAGES + CONFIG_DTCM_NR_PAGES)
  19#else
  20#define TCM_NR_PAGES    (CONFIG_ITCM_NR_PAGES)
  21#endif
  22#define FIXADDR_TCM     _AC(FIXADDR_TOP - (TCM_NR_PAGES * PAGE_SIZE), UL)
  23#endif
  24
  25#endif
  26