/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)3*4* This program is free software; you can redistribute it and/or modify5* it under the terms of the GNU General Public License version 2 as6* published by the Free Software Foundation.7*/89#ifndef _UAPI__ASM_ARC_PAGE_H10#define _UAPI__ASM_ARC_PAGE_H1112#include <linux/const.h>1314/* PAGE_SHIFT determines the page size */15#ifdef __KERNEL__16#include <vdso/page.h>17#else18/*19* Default 8k20* done this way (instead of under CONFIG_ARC_PAGE_SIZE_8K) because adhoc21* user code (busybox appletlib.h) expects PAGE_SHIFT to be defined w/o22* using the correct uClibc header and in their build our autoconf.h is23* not available24*/25#define PAGE_SHIFT 1326#define PAGE_SIZE _BITUL(PAGE_SHIFT) /* Default 8K */27#define PAGE_MASK (~(PAGE_SIZE-1))28#endif2930#define PAGE_OFFSET _AC(0x80000000, UL) /* Kernel starts at 2G onwrds */3132#endif /* _UAPI__ASM_ARC_PAGE_H */333435