cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

sparsemem.h (634B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef _LOONGARCH_SPARSEMEM_H
      3#define _LOONGARCH_SPARSEMEM_H
      4
      5#ifdef CONFIG_SPARSEMEM
      6
      7/*
      8 * SECTION_SIZE_BITS		2^N: how big each section will be
      9 * MAX_PHYSMEM_BITS		2^N: how much memory we can have in that space
     10 */
     11#define SECTION_SIZE_BITS	29 /* 2^29 = Largest Huge Page Size */
     12#define MAX_PHYSMEM_BITS	48
     13
     14#endif /* CONFIG_SPARSEMEM */
     15
     16#ifdef CONFIG_MEMORY_HOTPLUG
     17int memory_add_physaddr_to_nid(u64 addr);
     18#define memory_add_physaddr_to_nid memory_add_physaddr_to_nid
     19#endif
     20
     21#define INIT_MEMBLOCK_RESERVED_REGIONS	(INIT_MEMBLOCK_REGIONS + NR_CPUS)
     22
     23#endif /* _LOONGARCH_SPARSEMEM_H */