@ -73,8 +73,8 @@ stacked register values. */
# define portexR11_STACK_OFFSET 12
# define portexR12_STACK_OFFSET 13
# define portexR15_STACK_OFFSET 16
# define portexR18_STACK_OFFSET 1 8
# define portexMSR_STACK_OFFSET 19
# define portexR18_STACK_OFFSET 1 9
# define portexMSR_STACK_OFFSET 20
# define portexR19_STACK_OFFSET -1
/* This is defined to equal the size, in bytes, of the stack frame generated by
@ -90,9 +90,9 @@ exceptions, or the application defined configuration constant
configINSTALL_EXCEPTION_HANDLERS is not set to 1. */
# if ( MICROBLAZE_EXCEPTIONS_ENABLED == 1 ) && ( configINSTALL_EXCEPTION_HANDLERS == 1 )
/* Th ese variables are set in the exception entry code, before
/* Th is variable is set in the exception entry code, before
vPortExceptionHandler is called . */
unsigned long * pulStackPointerOnFunctionEntry = NULL , ulBTROnFunctionEntry = 0UL ;
unsigned long * pulStackPointerOnFunctionEntry = NULL ;
/* This is the structure that is filled with the MicroBlaze context as it
existed immediately prior to the exception occurrence . A pointer to this
@ -159,8 +159,7 @@ extern void *pxCurrentTCB;
xRegisterDump . ulR13_read_write_small_data_area = mfgpr ( R13 ) ;
xRegisterDump . ulR14_return_address_from_interrupt = mfgpr ( R14 ) ;
xRegisterDump . ulR16_return_address_from_trap = mfgpr ( R16 ) ;
xRegisterDump . ulR17_return_address_from_some_exceptions = mfgpr ( R17 ) ;
xRegisterDump . ulR18 = mfgpr ( R18 ) ;
xRegisterDump . ulR17_return_address_from_exceptions = mfgpr ( R17 ) ;
xRegisterDump . ulR20 = mfgpr ( R20 ) ;
xRegisterDump . ulR21 = mfgpr ( R21 ) ;
xRegisterDump . ulR22 = mfgpr ( R22 ) ;
@ -174,7 +173,6 @@ extern void *pxCurrentTCB;
xRegisterDump . ulR30 = mfgpr ( R30 ) ;
xRegisterDump . ulR31 = mfgpr ( R31 ) ;
xRegisterDump . ulR1_SP = ( ( unsigned long ) pulStackPointerOnFunctionEntry ) + portexASM_HANDLER_STACK_FRAME_SIZE ;
xRegisterDump . ulBTR = ulBTROnFunctionEntry ;
xRegisterDump . ulEAR = mfear ( ) ;
xRegisterDump . ulESR = mfesr ( ) ;
xRegisterDump . ulEDR = mfedr ( ) ;
@ -182,7 +180,7 @@ extern void *pxCurrentTCB;
/* Move the saved program counter back to the instruction that was executed
when the exception occurred . This is only valid for certain types of
exception . */
xRegisterDump . ulPC = xRegisterDump . ulR17_return_address_from_ some_ exceptions - portexINSTRUCTION_SIZE ;
xRegisterDump . ulPC = xRegisterDump . ulR17_return_address_from_ exceptions - portexINSTRUCTION_SIZE ;
# if XPAR_MICROBLAZE_0_USE_FPU == 1
{