diff options
Diffstat (limited to 'include/asm-powerpc/lppaca.h')
-rw-r--r-- | include/asm-powerpc/lppaca.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-powerpc/lppaca.h b/include/asm-powerpc/lppaca.h index c1bedab1515b..4dc514aabfe7 100644 --- a/include/asm-powerpc/lppaca.h +++ b/include/asm-powerpc/lppaca.h | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #ifndef _ASM_POWERPC_LPPACA_H | 19 | #ifndef _ASM_POWERPC_LPPACA_H |
20 | #define _ASM_POWERPC_LPPACA_H | 20 | #define _ASM_POWERPC_LPPACA_H |
21 | #ifdef __KERNEL__ | ||
21 | 22 | ||
22 | //============================================================================= | 23 | //============================================================================= |
23 | // | 24 | // |
@@ -28,6 +29,8 @@ | |||
28 | //---------------------------------------------------------------------------- | 29 | //---------------------------------------------------------------------------- |
29 | #include <asm/types.h> | 30 | #include <asm/types.h> |
30 | 31 | ||
32 | /* The Hypervisor barfs if the lppaca crosses a page boundary. A 1k | ||
33 | * alignment is sufficient to prevent this */ | ||
31 | struct lppaca { | 34 | struct lppaca { |
32 | //============================================================================= | 35 | //============================================================================= |
33 | // CACHE_LINE_1 0x0000 - 0x007F Contains read-only data | 36 | // CACHE_LINE_1 0x0000 - 0x007F Contains read-only data |
@@ -126,6 +129,9 @@ struct lppaca { | |||
126 | // CACHE_LINE_4-5 0x0100 - 0x01FF Contains PMC interrupt data | 129 | // CACHE_LINE_4-5 0x0100 - 0x01FF Contains PMC interrupt data |
127 | //============================================================================= | 130 | //============================================================================= |
128 | u8 pmc_save_area[256]; // PMC interrupt Area x00-xFF | 131 | u8 pmc_save_area[256]; // PMC interrupt Area x00-xFF |
129 | }; | 132 | } __attribute__((__aligned__(0x400))); |
130 | 133 | ||
134 | extern struct lppaca lppaca[]; | ||
135 | |||
136 | #endif /* __KERNEL__ */ | ||
131 | #endif /* _ASM_POWERPC_LPPACA_H */ | 137 | #endif /* _ASM_POWERPC_LPPACA_H */ |