mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
vdso: Introduce vdso/page.h
The VDSO implementation includes headers from outside of the vdso/ namespace. Introduce vdso/page.h to make sure that the generic library uses only the allowed namespace. Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> # m68k Link: https://lore.kernel.org/all/20241014151340.1639555-3-vincenzo.frascino@arm.com
This commit is contained in:
committed by
Thomas Gleixner
parent
8fd236b00f
commit
efe8419ae7
@@ -11,14 +11,11 @@
|
||||
#include <linux/const.h>
|
||||
#include <asm/types.h>
|
||||
|
||||
#define _PAGE_SHIFT CONFIG_PAGE_SHIFT
|
||||
#define _PAGE_SIZE (_AC(1, UL) << _PAGE_SHIFT)
|
||||
#define _PAGE_MASK (~(_PAGE_SIZE - 1))
|
||||
#include <vdso/page.h>
|
||||
|
||||
/* PAGE_SHIFT determines the page size */
|
||||
#define PAGE_SHIFT _PAGE_SHIFT
|
||||
#define PAGE_SIZE _PAGE_SIZE
|
||||
#define PAGE_MASK _PAGE_MASK
|
||||
#define _PAGE_SHIFT PAGE_SHIFT
|
||||
#define _PAGE_SIZE PAGE_SIZE
|
||||
#define _PAGE_MASK PAGE_MASK
|
||||
#define PAGE_DEFAULT_ACC _AC(0, UL)
|
||||
/* storage-protection override */
|
||||
#define PAGE_SPO_ACC 9
|
||||
|
||||
Reference in New Issue
Block a user