powerpc/8xx: Don't restore regs to save them again.

There is not need to restore r10, r11 and cr registers at this end of ITLBmiss
handler as they are saved again to the same place in ITLBError handler we are
jumping to.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
LEROY Christophe 2014-09-19 10:36:10 +02:00 committed by Scott Wood
parent c9a803fb17
commit b0168eb97b
1 changed files with 5 additions and 3 deletions

View File

@ -383,8 +383,7 @@ InstructionTLBMiss:
lwz r3, 8(r0) lwz r3, 8(r0)
#endif #endif
mfspr r10, SPRN_SPRG_SCRATCH2 mfspr r10, SPRN_SPRG_SCRATCH2
EXCEPTION_EPILOG_0 b InstructionTLBError1
b InstructionTLBError
. = 0x1200 . = 0x1200
DataStoreTLBMiss: DataStoreTLBMiss:
@ -473,7 +472,10 @@ DataStoreTLBMiss:
*/ */
. = 0x1300 . = 0x1300
InstructionTLBError: InstructionTLBError:
EXCEPTION_PROLOG EXCEPTION_PROLOG_0
InstructionTLBError1:
EXCEPTION_PROLOG_1
EXCEPTION_PROLOG_2
mr r4,r12 mr r4,r12
mr r5,r9 mr r5,r9
/* 0x400 is InstructionAccess exception, needed by bad_page_fault() */ /* 0x400 is InstructionAccess exception, needed by bad_page_fault() */