#define portexR11_STACK_OFFSET 12\r
#define portexR12_STACK_OFFSET 13\r
#define portexR15_STACK_OFFSET 16\r
-#define portexR18_STACK_OFFSET 18\r
-#define portexMSR_STACK_OFFSET 19\r
+#define portexR18_STACK_OFFSET 19\r
+#define portexMSR_STACK_OFFSET 20\r
#define portexR19_STACK_OFFSET -1\r
\r
/* This is defined to equal the size, in bytes, of the stack frame generated by\r
configINSTALL_EXCEPTION_HANDLERS is not set to 1. */\r
#if ( MICROBLAZE_EXCEPTIONS_ENABLED == 1 ) && ( configINSTALL_EXCEPTION_HANDLERS == 1 )\r
\r
-/* These variables are set in the exception entry code, before \r
+/* This variable is set in the exception entry code, before\r
vPortExceptionHandler is called. */\r
-unsigned long *pulStackPointerOnFunctionEntry = NULL, ulBTROnFunctionEntry = 0UL;\r
+unsigned long *pulStackPointerOnFunctionEntry = NULL;\r
\r
/* This is the structure that is filled with the MicroBlaze context as it\r
existed immediately prior to the exception occurrence. A pointer to this\r
xRegisterDump.ulR13_read_write_small_data_area = mfgpr( R13 );\r
xRegisterDump.ulR14_return_address_from_interrupt = mfgpr( R14 );\r
xRegisterDump.ulR16_return_address_from_trap = mfgpr( R16 );\r
- xRegisterDump.ulR17_return_address_from_some_exceptions = mfgpr( R17 );\r
- xRegisterDump.ulR18 = mfgpr( R18 );\r
+ xRegisterDump.ulR17_return_address_from_exceptions = mfgpr( R17 );\r
xRegisterDump.ulR20 = mfgpr( R20 );\r
xRegisterDump.ulR21 = mfgpr( R21 );\r
xRegisterDump.ulR22 = mfgpr( R22 );\r
xRegisterDump.ulR30 = mfgpr( R30 );\r
xRegisterDump.ulR31 = mfgpr( R31 );\r
xRegisterDump.ulR1_SP = ( ( unsigned long ) pulStackPointerOnFunctionEntry ) + portexASM_HANDLER_STACK_FRAME_SIZE;\r
- xRegisterDump.ulBTR = ulBTROnFunctionEntry;\r
xRegisterDump.ulEAR = mfear();\r
xRegisterDump.ulESR = mfesr();\r
xRegisterDump.ulEDR = mfedr();\r
/* Move the saved program counter back to the instruction that was executed\r
when the exception occurred. This is only valid for certain types of\r
exception. */\r
- xRegisterDump.ulPC = xRegisterDump.ulR17_return_address_from_some_exceptions - portexINSTRUCTION_SIZE;\r
+ xRegisterDump.ulPC = xRegisterDump.ulR17_return_address_from_exceptions - portexINSTRUCTION_SIZE;\r
\r
#if XPAR_MICROBLAZE_0_USE_FPU == 1\r
{\r
.extern ulTaskSwitchRequested\r
.extern vPortExceptionHandler\r
.extern pulStackPointerOnFunctionEntry\r
- .extern ulBTROnFunctionEntry\r
\r
.global _interrupt_handler\r
.global VPortYieldASM\r
/* Take a copy of the stack pointer before vPortExecptionHandler is called,\r
storing its value prior to the function stack frame being created. */\r
swi r1, r0, pulStackPointerOnFunctionEntry\r
- mfs r18, RBTR\r
- swi r18, r0, ulBTROnFunctionEntry\r
bralid r15, vPortExceptionHandler\r
or r0, r0, r0\r
\r