7 #ifndef __ASM_FACILITY_H
8 #define __ASM_FACILITY_H
10 #include <linux/string.h>
14 #define MAX_FACILITY_BIT (256*8)
21 static inline int test_facility(
unsigned long nr)
27 ptr = (
unsigned char *) &
S390_lowcore.stfle_fac_list + (nr >> 3);
28 return (*ptr & (0x80 >> (nr & 7))) != 0;
42 " .insn s,0xb2b10000,0(0)\n"
50 register unsigned long reg0 asm(
"0") = size - 1;
52 asm volatile(
".insn s,0xb2b00000,0(%1)"
54 :
"a" (stfle_fac_list)
58 memset((
char *) stfle_fac_list + nr, 0, size * 8 - nr);