File Index
Files and directories
Sign in
FILE

skey.h

File preview with syntax highlighting.

linux-6.19.14/arch/s390/include/asm/skey.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef __ASM_SKEY_H
 3#define __ASM_SKEY_H
 4
 5#include <asm/rwonce.h>
 6
 7struct skey_region {
 8	unsigned long start;
 9	unsigned long end;
10};
11
12#define SKEY_REGION(_start, _end)			\
13	stringify_in_c(.section .skey_region,"a";)	\
14	stringify_in_c(.balign 8;)			\
15	stringify_in_c(.quad (_start);)			\
16	stringify_in_c(.quad (_end);)			\
17	stringify_in_c(.previous)
18
19extern int skey_regions_initialized;
20extern struct skey_region __skey_region_start[];
21extern struct skey_region __skey_region_end[];
22
23void __skey_regions_initialize(void);
24
25static inline void skey_regions_initialize(void)
26{
27	if (READ_ONCE(skey_regions_initialized))
28		return;
29	__skey_regions_initialize();
30}
31
32#endif /* __ASM_SKEY_H */
~/ Read-only file preview.