Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _MIPS_SPARSEMEM_H
0003 #define _MIPS_SPARSEMEM_H
0004 #ifdef CONFIG_SPARSEMEM
0005 
0006 /*
0007  * SECTION_SIZE_BITS        2^N: how big each section will be
0008  * MAX_PHYSMEM_BITS     2^N: how much memory we can have in that space
0009  */
0010 #if defined(CONFIG_MIPS_HUGE_TLB_SUPPORT) && defined(CONFIG_PAGE_SIZE_64KB)
0011 # define SECTION_SIZE_BITS  29
0012 #else
0013 # define SECTION_SIZE_BITS  28
0014 #endif
0015 #define MAX_PHYSMEM_BITS    48
0016 
0017 #endif /* CONFIG_SPARSEMEM */
0018 #endif /* _MIPS_SPARSEMEM_H */