@@ -309,24 +309,21 @@ int main(void)
309309 STACK_PT_REGS_OFFSET (STACK_REGS_IAMR , iamr );
310310#endif
311311
312- #if defined(CONFIG_PPC32 )
313- #if defined(CONFIG_BOOKE ) || defined(CONFIG_40x )
314- DEFINE (EXC_LVL_SIZE , STACK_EXC_LVL_FRAME_SIZE );
315- DEFINE (MAS0 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , mas0 ));
312+ #if defined(CONFIG_PPC32 ) && defined(CONFIG_BOOKE )
313+ STACK_PT_REGS_OFFSET (MAS0 , mas0 );
316314 /* we overload MMUCR for 44x on MAS0 since they are mutually exclusive */
317- DEFINE (MMUCR , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , mas0 ));
318- DEFINE (MAS1 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , mas1 ));
319- DEFINE (MAS2 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , mas2 ));
320- DEFINE (MAS3 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , mas3 ));
321- DEFINE (MAS6 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , mas6 ));
322- DEFINE (MAS7 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , mas7 ));
323- DEFINE (_SRR0 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , srr0 ));
324- DEFINE (_SRR1 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , srr1 ));
325- DEFINE (_CSRR0 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , csrr0 ));
326- DEFINE (_CSRR1 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , csrr1 ));
327- DEFINE (_DSRR0 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , dsrr0 ));
328- DEFINE (_DSRR1 , STACK_INT_FRAME_SIZE + offsetof(struct exception_regs , dsrr1 ));
329- #endif
315+ STACK_PT_REGS_OFFSET (MMUCR , mas0 );
316+ STACK_PT_REGS_OFFSET (MAS1 , mas1 );
317+ STACK_PT_REGS_OFFSET (MAS2 , mas2 );
318+ STACK_PT_REGS_OFFSET (MAS3 , mas3 );
319+ STACK_PT_REGS_OFFSET (MAS6 , mas6 );
320+ STACK_PT_REGS_OFFSET (MAS7 , mas7 );
321+ STACK_PT_REGS_OFFSET (_SRR0 , srr0 );
322+ STACK_PT_REGS_OFFSET (_SRR1 , srr1 );
323+ STACK_PT_REGS_OFFSET (_CSRR0 , csrr0 );
324+ STACK_PT_REGS_OFFSET (_CSRR1 , csrr1 );
325+ STACK_PT_REGS_OFFSET (_DSRR0 , dsrr0 );
326+ STACK_PT_REGS_OFFSET (_DSRR1 , dsrr1 );
330327#endif
331328
332329 /* About the CPU features table */
0 commit comments