]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/sparc/include/asm/page.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[thirdparty/u-boot.git] / arch / sparc / include / asm / page.h
CommitLineData
c2f02da2
DH
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 *
1a459660 7 * SPDX-License-Identifier: GPL-2.0+
c2f02da2
DH
8 */
9
10#ifndef _SPARC_PAGE_H
11#define _SPARC_PAGE_H
12
13#include <linux/config.h>
14#ifdef CONFIG_SUN4
15#define PAGE_SHIFT 13
16#else
17#define PAGE_SHIFT 12
18#endif
19
20#ifndef __ASSEMBLY__
21/* I have my suspicions... -DaveM */
22#define PAGE_SIZE (1UL << PAGE_SHIFT)
23#else
24#define PAGE_SIZE (1 << PAGE_SHIFT)
25#endif
26
27#define PAGE_MASK (~(PAGE_SIZE-1))
28
29#endif /* _SPARC_PAGE_H */