diff options
Diffstat (limited to 'arch/powerpc/include/asm/paca.h')
-rw-r--r-- | arch/powerpc/include/asm/paca.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/paca.h b/arch/powerpc/include/asm/paca.h index 77c91e74b612..a5954cebbc55 100644 --- a/arch/powerpc/include/asm/paca.h +++ b/arch/powerpc/include/asm/paca.h | |||
@@ -68,8 +68,13 @@ struct paca_struct { | |||
68 | * instruction. They must travel together and be properly | 68 | * instruction. They must travel together and be properly |
69 | * aligned. | 69 | * aligned. |
70 | */ | 70 | */ |
71 | #ifdef __BIG_ENDIAN__ | ||
71 | u16 lock_token; /* Constant 0x8000, used in locks */ | 72 | u16 lock_token; /* Constant 0x8000, used in locks */ |
72 | u16 paca_index; /* Logical processor number */ | 73 | u16 paca_index; /* Logical processor number */ |
74 | #else | ||
75 | u16 paca_index; /* Logical processor number */ | ||
76 | u16 lock_token; /* Constant 0x8000, used in locks */ | ||
77 | #endif | ||
73 | 78 | ||
74 | u64 kernel_toc; /* Kernel TOC address */ | 79 | u64 kernel_toc; /* Kernel TOC address */ |
75 | u64 kernelbase; /* Base address of kernel */ | 80 | u64 kernelbase; /* Base address of kernel */ |
@@ -93,9 +98,9 @@ struct paca_struct { | |||
93 | * Now, starting in cacheline 2, the exception save areas | 98 | * Now, starting in cacheline 2, the exception save areas |
94 | */ | 99 | */ |
95 | /* used for most interrupts/exceptions */ | 100 | /* used for most interrupts/exceptions */ |
96 | u64 exgen[12] __attribute__((aligned(0x80))); | 101 | u64 exgen[13] __attribute__((aligned(0x80))); |
97 | u64 exmc[12]; /* used for machine checks */ | 102 | u64 exmc[13]; /* used for machine checks */ |
98 | u64 exslb[12]; /* used for SLB/segment table misses | 103 | u64 exslb[13]; /* used for SLB/segment table misses |
99 | * on the linear mapping */ | 104 | * on the linear mapping */ |
100 | /* SLB related definitions */ | 105 | /* SLB related definitions */ |
101 | u16 vmalloc_sllp; | 106 | u16 vmalloc_sllp; |