Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
0004  */
0005 
0006 #ifndef _ASM_ARC_PGTABLE_H
0007 #define _ASM_ARC_PGTABLE_H
0008 
0009 #include <linux/bits.h>
0010 
0011 #include <asm/pgtable-levels.h>
0012 #include <asm/pgtable-bits-arcv2.h>
0013 #include <asm/page.h>
0014 #include <asm/mmu.h>
0015 
0016 /*
0017  * Number of entries a user land program use.
0018  * TASK_SIZE is the maximum vaddr that can be used by a userland program.
0019  */
0020 #define USER_PTRS_PER_PGD   (TASK_SIZE / PGDIR_SIZE)
0021 
0022 #ifndef __ASSEMBLY__
0023 
0024 extern char empty_zero_page[PAGE_SIZE];
0025 #define ZERO_PAGE(vaddr)    (virt_to_page(empty_zero_page))
0026 
0027 extern pgd_t swapper_pg_dir[] __aligned(PAGE_SIZE);
0028 
0029 /* to cope with aliasing VIPT cache */
0030 #define HAVE_ARCH_UNMAPPED_AREA
0031 
0032 #endif /* __ASSEMBLY__ */
0033 
0034 #endif