Server : nginx/1.24.0 System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE Directory : /usr/src/linux-headers-6.14.0-1011-aws/include/vdso/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __VDSO_PAGE_H #define __VDSO_PAGE_H #include <uapi/linux/const.h> /* * PAGE_SHIFT determines the page size. * * Note: This definition is required because PAGE_SHIFT is used * in several places throughout the codebase. */ #define PAGE_SHIFT CONFIG_PAGE_SHIFT #define PAGE_SIZE (_AC(1,UL) << CONFIG_PAGE_SHIFT) #if !defined(CONFIG_64BIT) /* * Applies only to 32-bit architectures. * * Subtle: (1 << CONFIG_PAGE_SHIFT) is an int, not an unsigned long. * So if we assign PAGE_MASK to a larger type it gets extended the * way we want (i.e. with 1s in the high bits) while masking a * 64-bit value such as phys_addr_t. */ #define PAGE_MASK (~((1 << CONFIG_PAGE_SHIFT) - 1)) #else #define PAGE_MASK (~(PAGE_SIZE - 1)) #endif #endif /* __VDSO_PAGE_H */