diff options
Diffstat (limited to 'include/asm-powerpc/paca.h')
| -rw-r--r-- | include/asm-powerpc/paca.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/include/asm-powerpc/paca.h b/include/asm-powerpc/paca.h index a64b4d425dab..c9add8f1ad94 100644 --- a/include/asm-powerpc/paca.h +++ b/include/asm-powerpc/paca.h | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | register struct paca_struct *local_paca asm("r13"); | 24 | register struct paca_struct *local_paca asm("r13"); |
| 25 | #define get_paca() local_paca | 25 | #define get_paca() local_paca |
| 26 | #define get_lppaca() (get_paca()->lppaca_ptr) | ||
| 26 | 27 | ||
| 27 | struct task_struct; | 28 | struct task_struct; |
| 28 | 29 | ||
| @@ -95,19 +96,6 @@ struct paca_struct { | |||
| 95 | u64 saved_r1; /* r1 save for RTAS calls */ | 96 | u64 saved_r1; /* r1 save for RTAS calls */ |
| 96 | u64 saved_msr; /* MSR saved here by enter_rtas */ | 97 | u64 saved_msr; /* MSR saved here by enter_rtas */ |
| 97 | u8 proc_enabled; /* irq soft-enable flag */ | 98 | u8 proc_enabled; /* irq soft-enable flag */ |
| 98 | |||
| 99 | /* | ||
| 100 | * iSeries structure which the hypervisor knows about - | ||
| 101 | * this structure should not cross a page boundary. | ||
| 102 | * The vpa_init/register_vpa call is now known to fail if the | ||
| 103 | * lppaca structure crosses a page boundary. | ||
| 104 | * The lppaca is also used on POWER5 pSeries boxes. | ||
| 105 | * The lppaca is 640 bytes long, and cannot readily change | ||
| 106 | * since the hypervisor knows its layout, so a 1kB | ||
| 107 | * alignment will suffice to ensure that it doesn't | ||
| 108 | * cross a page boundary. | ||
| 109 | */ | ||
| 110 | struct lppaca lppaca __attribute__((__aligned__(0x400))); | ||
| 111 | }; | 99 | }; |
| 112 | 100 | ||
| 113 | extern struct paca_struct paca[]; | 101 | extern struct paca_struct paca[]; |
