]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/sparc/include/asm/page.h
Merge branch 'master' of git://www.denx.de/git/u-boot-usb
[karo-tx-uboot.git] / arch / sparc / include / asm / page.h
1 /* page.h:  Various defines and such for MMU operations on the Sparc for
2  *          the Linux kernel.
3  *
4  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
5  * Copyright (C) 2007 Daniel Hellstrom (daniel@gaisler.com)
6  *
7  * SPDX-License-Identifier:     GPL-2.0+
8  */
9
10 #ifndef _SPARC_PAGE_H
11 #define _SPARC_PAGE_H
12
13 #ifdef CONFIG_SUN4
14 #define PAGE_SHIFT   13
15 #else
16 #define PAGE_SHIFT   12
17 #endif
18
19 #ifndef __ASSEMBLY__
20 /* I have my suspicions... -DaveM */
21 #define PAGE_SIZE    (1UL << PAGE_SHIFT)
22 #else
23 #define PAGE_SIZE    (1 << PAGE_SHIFT)
24 #endif
25
26 #define PAGE_MASK    (~(PAGE_SIZE-1))
27
28 #endif                          /* _SPARC_PAGE_H */