1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_S390_ABS_LOWCORE_H
3 #define _ASM_S390_ABS_LOWCORE_H
4 
5 #include <asm/lowcore.h>
6 
7 #define ABS_LOWCORE_MAP_SIZE	(NR_CPUS * sizeof(struct lowcore))
8 
9 extern unsigned long __abs_lowcore;
10 extern bool abs_lowcore_mapped;
11 
12 struct lowcore *get_abs_lowcore(unsigned long *flags);
13 void put_abs_lowcore(struct lowcore *lc, unsigned long flags);
14 int abs_lowcore_map(int cpu, struct lowcore *lc, bool alloc);
15 void abs_lowcore_unmap(int cpu);
16 
17 #endif /* _ASM_S390_ABS_LOWCORE_H */
18