Skip to content

Commit fe6ba88

Browse files
masahir0ytorvalds
authored andcommitted
arch: replace _BITUL() in kernel-space headers with BIT()
Now that BIT() can be used from assembly code, we can safely replace _BITUL() with equivalent BIT(). UAPI headers are still required to use _BITUL(), but there is no more reason to use it in kernel headers. BIT() is shorter. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Masahiro Yamada <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Vineet Gupta <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 95b980d commit fe6ba88

File tree

9 files changed

+136
-135
lines changed

9 files changed

+136
-135
lines changed

arch/arc/include/asm/pgtable.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#ifndef _ASM_ARC_PGTABLE_H
3333
#define _ASM_ARC_PGTABLE_H
3434

35-
#include <linux/const.h>
35+
#include <linux/bits.h>
3636
#define __ARCH_USE_5LEVEL_HACK
3737
#include <asm-generic/pgtable-nopmd.h>
3838
#include <asm/page.h>
@@ -215,11 +215,11 @@
215215
#define BITS_FOR_PTE (PGDIR_SHIFT - PAGE_SHIFT)
216216
#define BITS_FOR_PGD (32 - PGDIR_SHIFT)
217217

218-
#define PGDIR_SIZE _BITUL(PGDIR_SHIFT) /* vaddr span, not PDG sz */
218+
#define PGDIR_SIZE BIT(PGDIR_SHIFT) /* vaddr span, not PDG sz */
219219
#define PGDIR_MASK (~(PGDIR_SIZE-1))
220220

221-
#define PTRS_PER_PTE _BITUL(BITS_FOR_PTE)
222-
#define PTRS_PER_PGD _BITUL(BITS_FOR_PGD)
221+
#define PTRS_PER_PTE BIT(BITS_FOR_PTE)
222+
#define PTRS_PER_PGD BIT(BITS_FOR_PGD)
223223

224224
/*
225225
* Number of entries a user land program use.

arch/arc/plat-eznps/include/plat/ctop.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#error "Incorrect ctop.h include"
1111
#endif
1212

13+
#include <linux/bits.h>
1314
#include <linux/types.h>
1415
#include <soc/nps/common.h>
1516

@@ -51,19 +52,19 @@
5152
#define CTOP_INST_AXOR_DI_R2_R2_R3 0x4A664C06
5253

5354
/* Do not use D$ for address in 2G-3G */
54-
#define HW_COMPLY_KRN_NOT_D_CACHED _BITUL(28)
55+
#define HW_COMPLY_KRN_NOT_D_CACHED BIT(28)
5556

5657
#define NPS_MSU_EN_CFG 0x80
5758
#define NPS_CRG_BLKID 0x480
58-
#define NPS_CRG_SYNC_BIT _BITUL(0)
59+
#define NPS_CRG_SYNC_BIT BIT(0)
5960
#define NPS_GIM_BLKID 0x5C0
6061

6162
/* GIM registers and fields*/
62-
#define NPS_GIM_UART_LINE _BITUL(7)
63-
#define NPS_GIM_DBG_LAN_EAST_TX_DONE_LINE _BITUL(10)
64-
#define NPS_GIM_DBG_LAN_EAST_RX_RDY_LINE _BITUL(11)
65-
#define NPS_GIM_DBG_LAN_WEST_TX_DONE_LINE _BITUL(25)
66-
#define NPS_GIM_DBG_LAN_WEST_RX_RDY_LINE _BITUL(26)
63+
#define NPS_GIM_UART_LINE BIT(7)
64+
#define NPS_GIM_DBG_LAN_EAST_TX_DONE_LINE BIT(10)
65+
#define NPS_GIM_DBG_LAN_EAST_RX_RDY_LINE BIT(11)
66+
#define NPS_GIM_DBG_LAN_WEST_TX_DONE_LINE BIT(25)
67+
#define NPS_GIM_DBG_LAN_WEST_RX_RDY_LINE BIT(26)
6768

6869
#ifndef __ASSEMBLY__
6970
/* Functional registers definition */

arch/arm64/include/asm/sysreg.h

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef __ASM_SYSREG_H
1010
#define __ASM_SYSREG_H
1111

12-
#include <linux/const.h>
12+
#include <linux/bits.h>
1313
#include <linux/stringify.h>
1414

1515
/*
@@ -478,31 +478,31 @@
478478
#define SYS_CNTV_CVAL_EL02 sys_reg(3, 5, 14, 3, 2)
479479

480480
/* Common SCTLR_ELx flags. */
481-
#define SCTLR_ELx_DSSBS (_BITUL(44))
482-
#define SCTLR_ELx_ENIA (_BITUL(31))
483-
#define SCTLR_ELx_ENIB (_BITUL(30))
484-
#define SCTLR_ELx_ENDA (_BITUL(27))
485-
#define SCTLR_ELx_EE (_BITUL(25))
486-
#define SCTLR_ELx_IESB (_BITUL(21))
487-
#define SCTLR_ELx_WXN (_BITUL(19))
488-
#define SCTLR_ELx_ENDB (_BITUL(13))
489-
#define SCTLR_ELx_I (_BITUL(12))
490-
#define SCTLR_ELx_SA (_BITUL(3))
491-
#define SCTLR_ELx_C (_BITUL(2))
492-
#define SCTLR_ELx_A (_BITUL(1))
493-
#define SCTLR_ELx_M (_BITUL(0))
481+
#define SCTLR_ELx_DSSBS (BIT(44))
482+
#define SCTLR_ELx_ENIA (BIT(31))
483+
#define SCTLR_ELx_ENIB (BIT(30))
484+
#define SCTLR_ELx_ENDA (BIT(27))
485+
#define SCTLR_ELx_EE (BIT(25))
486+
#define SCTLR_ELx_IESB (BIT(21))
487+
#define SCTLR_ELx_WXN (BIT(19))
488+
#define SCTLR_ELx_ENDB (BIT(13))
489+
#define SCTLR_ELx_I (BIT(12))
490+
#define SCTLR_ELx_SA (BIT(3))
491+
#define SCTLR_ELx_C (BIT(2))
492+
#define SCTLR_ELx_A (BIT(1))
493+
#define SCTLR_ELx_M (BIT(0))
494494

495495
#define SCTLR_ELx_FLAGS (SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | \
496496
SCTLR_ELx_SA | SCTLR_ELx_I | SCTLR_ELx_IESB)
497497

498498
/* SCTLR_EL2 specific flags. */
499-
#define SCTLR_EL2_RES1 ((_BITUL(4)) | (_BITUL(5)) | (_BITUL(11)) | (_BITUL(16)) | \
500-
(_BITUL(18)) | (_BITUL(22)) | (_BITUL(23)) | (_BITUL(28)) | \
501-
(_BITUL(29)))
502-
#define SCTLR_EL2_RES0 ((_BITUL(6)) | (_BITUL(7)) | (_BITUL(8)) | (_BITUL(9)) | \
503-
(_BITUL(10)) | (_BITUL(13)) | (_BITUL(14)) | (_BITUL(15)) | \
504-
(_BITUL(17)) | (_BITUL(20)) | (_BITUL(24)) | (_BITUL(26)) | \
505-
(_BITUL(27)) | (_BITUL(30)) | (_BITUL(31)) | \
499+
#define SCTLR_EL2_RES1 ((BIT(4)) | (BIT(5)) | (BIT(11)) | (BIT(16)) | \
500+
(BIT(18)) | (BIT(22)) | (BIT(23)) | (BIT(28)) | \
501+
(BIT(29)))
502+
#define SCTLR_EL2_RES0 ((BIT(6)) | (BIT(7)) | (BIT(8)) | (BIT(9)) | \
503+
(BIT(10)) | (BIT(13)) | (BIT(14)) | (BIT(15)) | \
504+
(BIT(17)) | (BIT(20)) | (BIT(24)) | (BIT(26)) | \
505+
(BIT(27)) | (BIT(30)) | (BIT(31)) | \
506506
(0xffffefffUL << 32))
507507

508508
#ifdef CONFIG_CPU_BIG_ENDIAN
@@ -524,23 +524,23 @@
524524
#endif
525525

526526
/* SCTLR_EL1 specific flags. */
527-
#define SCTLR_EL1_UCI (_BITUL(26))
528-
#define SCTLR_EL1_E0E (_BITUL(24))
529-
#define SCTLR_EL1_SPAN (_BITUL(23))
530-
#define SCTLR_EL1_NTWE (_BITUL(18))
531-
#define SCTLR_EL1_NTWI (_BITUL(16))
532-
#define SCTLR_EL1_UCT (_BITUL(15))
533-
#define SCTLR_EL1_DZE (_BITUL(14))
534-
#define SCTLR_EL1_UMA (_BITUL(9))
535-
#define SCTLR_EL1_SED (_BITUL(8))
536-
#define SCTLR_EL1_ITD (_BITUL(7))
537-
#define SCTLR_EL1_CP15BEN (_BITUL(5))
538-
#define SCTLR_EL1_SA0 (_BITUL(4))
539-
540-
#define SCTLR_EL1_RES1 ((_BITUL(11)) | (_BITUL(20)) | (_BITUL(22)) | (_BITUL(28)) | \
541-
(_BITUL(29)))
542-
#define SCTLR_EL1_RES0 ((_BITUL(6)) | (_BITUL(10)) | (_BITUL(13)) | (_BITUL(17)) | \
543-
(_BITUL(27)) | (_BITUL(30)) | (_BITUL(31)) | \
527+
#define SCTLR_EL1_UCI (BIT(26))
528+
#define SCTLR_EL1_E0E (BIT(24))
529+
#define SCTLR_EL1_SPAN (BIT(23))
530+
#define SCTLR_EL1_NTWE (BIT(18))
531+
#define SCTLR_EL1_NTWI (BIT(16))
532+
#define SCTLR_EL1_UCT (BIT(15))
533+
#define SCTLR_EL1_DZE (BIT(14))
534+
#define SCTLR_EL1_UMA (BIT(9))
535+
#define SCTLR_EL1_SED (BIT(8))
536+
#define SCTLR_EL1_ITD (BIT(7))
537+
#define SCTLR_EL1_CP15BEN (BIT(5))
538+
#define SCTLR_EL1_SA0 (BIT(4))
539+
540+
#define SCTLR_EL1_RES1 ((BIT(11)) | (BIT(20)) | (BIT(22)) | (BIT(28)) | \
541+
(BIT(29)))
542+
#define SCTLR_EL1_RES0 ((BIT(6)) | (BIT(10)) | (BIT(13)) | (BIT(17)) | \
543+
(BIT(27)) | (BIT(30)) | (BIT(31)) | \
544544
(0xffffefffUL << 32))
545545

546546
#ifdef CONFIG_CPU_BIG_ENDIAN
@@ -756,13 +756,13 @@
756756
#define ZCR_ELx_LEN_SIZE 9
757757
#define ZCR_ELx_LEN_MASK 0x1ff
758758

759-
#define CPACR_EL1_ZEN_EL1EN (_BITUL(16)) /* enable EL1 access */
760-
#define CPACR_EL1_ZEN_EL0EN (_BITUL(17)) /* enable EL0 access, if EL1EN set */
759+
#define CPACR_EL1_ZEN_EL1EN (BIT(16)) /* enable EL1 access */
760+
#define CPACR_EL1_ZEN_EL0EN (BIT(17)) /* enable EL0 access, if EL1EN set */
761761
#define CPACR_EL1_ZEN (CPACR_EL1_ZEN_EL1EN | CPACR_EL1_ZEN_EL0EN)
762762

763763

764764
/* Safe value for MPIDR_EL1: Bit31:RES1, Bit30:U:0, Bit24:MT:0 */
765-
#define SYS_MPIDR_SAFE_VAL (_BITUL(31))
765+
#define SYS_MPIDR_SAFE_VAL (BIT(31))
766766

767767
#ifdef __ASSEMBLY__
768768

arch/s390/include/asm/ctl_reg.h

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@
88
#ifndef __ASM_CTL_REG_H
99
#define __ASM_CTL_REG_H
1010

11-
#include <linux/const.h>
12-
13-
#define CR0_CLOCK_COMPARATOR_SIGN _BITUL(63 - 10)
14-
#define CR0_EMERGENCY_SIGNAL_SUBMASK _BITUL(63 - 49)
15-
#define CR0_EXTERNAL_CALL_SUBMASK _BITUL(63 - 50)
16-
#define CR0_CLOCK_COMPARATOR_SUBMASK _BITUL(63 - 52)
17-
#define CR0_CPU_TIMER_SUBMASK _BITUL(63 - 53)
18-
#define CR0_SERVICE_SIGNAL_SUBMASK _BITUL(63 - 54)
19-
#define CR0_UNUSED_56 _BITUL(63 - 56)
20-
#define CR0_INTERRUPT_KEY_SUBMASK _BITUL(63 - 57)
21-
#define CR0_MEASUREMENT_ALERT_SUBMASK _BITUL(63 - 58)
22-
23-
#define CR2_GUARDED_STORAGE _BITUL(63 - 59)
24-
25-
#define CR14_UNUSED_32 _BITUL(63 - 32)
26-
#define CR14_UNUSED_33 _BITUL(63 - 33)
27-
#define CR14_CHANNEL_REPORT_SUBMASK _BITUL(63 - 35)
28-
#define CR14_RECOVERY_SUBMASK _BITUL(63 - 36)
29-
#define CR14_DEGRADATION_SUBMASK _BITUL(63 - 37)
30-
#define CR14_EXTERNAL_DAMAGE_SUBMASK _BITUL(63 - 38)
31-
#define CR14_WARNING_SUBMASK _BITUL(63 - 39)
11+
#include <linux/bits.h>
12+
13+
#define CR0_CLOCK_COMPARATOR_SIGN BIT(63 - 10)
14+
#define CR0_EMERGENCY_SIGNAL_SUBMASK BIT(63 - 49)
15+
#define CR0_EXTERNAL_CALL_SUBMASK BIT(63 - 50)
16+
#define CR0_CLOCK_COMPARATOR_SUBMASK BIT(63 - 52)
17+
#define CR0_CPU_TIMER_SUBMASK BIT(63 - 53)
18+
#define CR0_SERVICE_SIGNAL_SUBMASK BIT(63 - 54)
19+
#define CR0_UNUSED_56 BIT(63 - 56)
20+
#define CR0_INTERRUPT_KEY_SUBMASK BIT(63 - 57)
21+
#define CR0_MEASUREMENT_ALERT_SUBMASK BIT(63 - 58)
22+
23+
#define CR2_GUARDED_STORAGE BIT(63 - 59)
24+
25+
#define CR14_UNUSED_32 BIT(63 - 32)
26+
#define CR14_UNUSED_33 BIT(63 - 33)
27+
#define CR14_CHANNEL_REPORT_SUBMASK BIT(63 - 35)
28+
#define CR14_RECOVERY_SUBMASK BIT(63 - 36)
29+
#define CR14_DEGRADATION_SUBMASK BIT(63 - 37)
30+
#define CR14_EXTERNAL_DAMAGE_SUBMASK BIT(63 - 38)
31+
#define CR14_WARNING_SUBMASK BIT(63 - 39)
3232

3333
#ifndef __ASSEMBLY__
3434

arch/s390/include/asm/nmi.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
#ifndef _ASM_S390_NMI_H
1313
#define _ASM_S390_NMI_H
1414

15-
#include <linux/const.h>
15+
#include <linux/bits.h>
1616
#include <linux/types.h>
1717

1818
#define MCIC_SUBCLASS_MASK (1ULL<<63 | 1ULL<<62 | 1ULL<<61 | \
1919
1ULL<<59 | 1ULL<<58 | 1ULL<<56 | \
2020
1ULL<<55 | 1ULL<<54 | 1ULL<<53 | \
2121
1ULL<<52 | 1ULL<<47 | 1ULL<<46 | \
2222
1ULL<<45 | 1ULL<<44)
23-
#define MCCK_CODE_SYSTEM_DAMAGE _BITUL(63)
24-
#define MCCK_CODE_EXT_DAMAGE _BITUL(63 - 5)
25-
#define MCCK_CODE_CP _BITUL(63 - 9)
26-
#define MCCK_CODE_CPU_TIMER_VALID _BITUL(63 - 46)
27-
#define MCCK_CODE_PSW_MWP_VALID _BITUL(63 - 20)
28-
#define MCCK_CODE_PSW_IA_VALID _BITUL(63 - 23)
29-
#define MCCK_CODE_CR_VALID _BITUL(63 - 29)
30-
#define MCCK_CODE_GS_VALID _BITUL(63 - 36)
31-
#define MCCK_CODE_FC_VALID _BITUL(63 - 43)
23+
#define MCCK_CODE_SYSTEM_DAMAGE BIT(63)
24+
#define MCCK_CODE_EXT_DAMAGE BIT(63 - 5)
25+
#define MCCK_CODE_CP BIT(63 - 9)
26+
#define MCCK_CODE_CPU_TIMER_VALID BIT(63 - 46)
27+
#define MCCK_CODE_PSW_MWP_VALID BIT(63 - 20)
28+
#define MCCK_CODE_PSW_IA_VALID BIT(63 - 23)
29+
#define MCCK_CODE_CR_VALID BIT(63 - 29)
30+
#define MCCK_CODE_GS_VALID BIT(63 - 36)
31+
#define MCCK_CODE_FC_VALID BIT(63 - 43)
3232

3333
#ifndef __ASSEMBLY__
3434

arch/s390/include/asm/processor.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef __ASM_S390_PROCESSOR_H
1313
#define __ASM_S390_PROCESSOR_H
1414

15-
#include <linux/const.h>
15+
#include <linux/bits.h>
1616

1717
#define CIF_MCCK_PENDING 0 /* machine check handling is pending */
1818
#define CIF_ASCE_PRIMARY 1 /* primary asce needs fixup / uaccess */
@@ -24,15 +24,15 @@
2424
#define CIF_MCCK_GUEST 7 /* machine check happening in guest */
2525
#define CIF_DEDICATED_CPU 8 /* this CPU is dedicated */
2626

27-
#define _CIF_MCCK_PENDING _BITUL(CIF_MCCK_PENDING)
28-
#define _CIF_ASCE_PRIMARY _BITUL(CIF_ASCE_PRIMARY)
29-
#define _CIF_ASCE_SECONDARY _BITUL(CIF_ASCE_SECONDARY)
30-
#define _CIF_NOHZ_DELAY _BITUL(CIF_NOHZ_DELAY)
31-
#define _CIF_FPU _BITUL(CIF_FPU)
32-
#define _CIF_IGNORE_IRQ _BITUL(CIF_IGNORE_IRQ)
33-
#define _CIF_ENABLED_WAIT _BITUL(CIF_ENABLED_WAIT)
34-
#define _CIF_MCCK_GUEST _BITUL(CIF_MCCK_GUEST)
35-
#define _CIF_DEDICATED_CPU _BITUL(CIF_DEDICATED_CPU)
27+
#define _CIF_MCCK_PENDING BIT(CIF_MCCK_PENDING)
28+
#define _CIF_ASCE_PRIMARY BIT(CIF_ASCE_PRIMARY)
29+
#define _CIF_ASCE_SECONDARY BIT(CIF_ASCE_SECONDARY)
30+
#define _CIF_NOHZ_DELAY BIT(CIF_NOHZ_DELAY)
31+
#define _CIF_FPU BIT(CIF_FPU)
32+
#define _CIF_IGNORE_IRQ BIT(CIF_IGNORE_IRQ)
33+
#define _CIF_ENABLED_WAIT BIT(CIF_ENABLED_WAIT)
34+
#define _CIF_MCCK_GUEST BIT(CIF_MCCK_GUEST)
35+
#define _CIF_DEDICATED_CPU BIT(CIF_DEDICATED_CPU)
3636

3737
#ifndef __ASSEMBLY__
3838

arch/s390/include/asm/ptrace.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
#ifndef _S390_PTRACE_H
88
#define _S390_PTRACE_H
99

10-
#include <linux/const.h>
10+
#include <linux/bits.h>
1111
#include <uapi/asm/ptrace.h>
1212

1313
#define PIF_SYSCALL 0 /* inside a system call */
1414
#define PIF_PER_TRAP 1 /* deliver sigtrap on return to user */
1515
#define PIF_SYSCALL_RESTART 2 /* restart the current system call */
1616
#define PIF_GUEST_FAULT 3 /* indicates program check in sie64a */
1717

18-
#define _PIF_SYSCALL _BITUL(PIF_SYSCALL)
19-
#define _PIF_PER_TRAP _BITUL(PIF_PER_TRAP)
20-
#define _PIF_SYSCALL_RESTART _BITUL(PIF_SYSCALL_RESTART)
21-
#define _PIF_GUEST_FAULT _BITUL(PIF_GUEST_FAULT)
18+
#define _PIF_SYSCALL BIT(PIF_SYSCALL)
19+
#define _PIF_PER_TRAP BIT(PIF_PER_TRAP)
20+
#define _PIF_SYSCALL_RESTART BIT(PIF_SYSCALL_RESTART)
21+
#define _PIF_GUEST_FAULT BIT(PIF_GUEST_FAULT)
2222

2323
#ifndef __ASSEMBLY__
2424

arch/s390/include/asm/setup.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _ASM_S390_SETUP_H
77
#define _ASM_S390_SETUP_H
88

9-
#include <linux/const.h>
9+
#include <linux/bits.h>
1010
#include <uapi/asm/setup.h>
1111

1212
#define EP_OFFSET 0x10008
@@ -21,25 +21,25 @@
2121
* Machine features detected in early.c
2222
*/
2323

24-
#define MACHINE_FLAG_VM _BITUL(0)
25-
#define MACHINE_FLAG_KVM _BITUL(1)
26-
#define MACHINE_FLAG_LPAR _BITUL(2)
27-
#define MACHINE_FLAG_DIAG9C _BITUL(3)
28-
#define MACHINE_FLAG_ESOP _BITUL(4)
29-
#define MACHINE_FLAG_IDTE _BITUL(5)
30-
#define MACHINE_FLAG_DIAG44 _BITUL(6)
31-
#define MACHINE_FLAG_EDAT1 _BITUL(7)
32-
#define MACHINE_FLAG_EDAT2 _BITUL(8)
33-
#define MACHINE_FLAG_TOPOLOGY _BITUL(10)
34-
#define MACHINE_FLAG_TE _BITUL(11)
35-
#define MACHINE_FLAG_TLB_LC _BITUL(12)
36-
#define MACHINE_FLAG_VX _BITUL(13)
37-
#define MACHINE_FLAG_TLB_GUEST _BITUL(14)
38-
#define MACHINE_FLAG_NX _BITUL(15)
39-
#define MACHINE_FLAG_GS _BITUL(16)
40-
#define MACHINE_FLAG_SCC _BITUL(17)
41-
42-
#define LPP_MAGIC _BITUL(31)
24+
#define MACHINE_FLAG_VM BIT(0)
25+
#define MACHINE_FLAG_KVM BIT(1)
26+
#define MACHINE_FLAG_LPAR BIT(2)
27+
#define MACHINE_FLAG_DIAG9C BIT(3)
28+
#define MACHINE_FLAG_ESOP BIT(4)
29+
#define MACHINE_FLAG_IDTE BIT(5)
30+
#define MACHINE_FLAG_DIAG44 BIT(6)
31+
#define MACHINE_FLAG_EDAT1 BIT(7)
32+
#define MACHINE_FLAG_EDAT2 BIT(8)
33+
#define MACHINE_FLAG_TOPOLOGY BIT(10)
34+
#define MACHINE_FLAG_TE BIT(11)
35+
#define MACHINE_FLAG_TLB_LC BIT(12)
36+
#define MACHINE_FLAG_VX BIT(13)
37+
#define MACHINE_FLAG_TLB_GUEST BIT(14)
38+
#define MACHINE_FLAG_NX BIT(15)
39+
#define MACHINE_FLAG_GS BIT(16)
40+
#define MACHINE_FLAG_SCC BIT(17)
41+
42+
#define LPP_MAGIC BIT(31)
4343
#define LPP_PID_MASK _AC(0xffffffff, UL)
4444

4545
/* Offsets to entry points in kernel/head.S */

0 commit comments

Comments
 (0)