Merge tag 'locking-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / arm / include / asm / page-nommu.h
blob7c2c72323d1761198bb4afbdbb4b8db054a98237
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * arch/arm/include/asm/page-nommu.h
5 * Copyright (C) 2004 Hyok S. Choi
6 */
8 #ifndef _ASMARM_PAGE_NOMMU_H
9 #define _ASMARM_PAGE_NOMMU_H
11 #define clear_page(page) memset((page), 0, PAGE_SIZE)
12 #define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)
14 #define clear_user_page(page, vaddr, pg) clear_page(page)
15 #define copy_user_page(to, from, vaddr, pg) copy_page(to, from)
18 * These are used to make use of C type-checking..
20 typedef unsigned long pte_t;
21 typedef unsigned long pmd_t;
22 typedef unsigned long pgd_t[2];
23 typedef unsigned long pgprot_t;
25 #define pte_val(x) (x)
26 #define pmd_val(x) (x)
27 #define pgd_val(x) ((x)[0])
28 #define pgprot_val(x) (x)
30 #define __pte(x) (x)
31 #define __pmd(x) (x)
32 #define __pgprot(x) (x)
34 #endif