/*\r
- FreeRTOS V8.1.2 - Copyright (C) 2014 Real Time Engineers Ltd. \r
+ FreeRTOS V8.1.2 - Copyright (C) 2014 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
\r
/*-----------------------------------------------------------*/\r
\r
-/* vApplicationExceptionRegisterDump() is a callback function that the \r
+/* vApplicationExceptionRegisterDump() is a callback function that the\r
application can optionally define to receive a populated xPortRegisterDump\r
-structure. If the application chooses not to define a version of \r
-vApplicationExceptionRegisterDump() then this weekly defined default \r
+structure. If the application chooses not to define a version of\r
+vApplicationExceptionRegisterDump() then this weekly defined default\r
implementation will be called instead. */\r
extern void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump ) __attribute__((weak));\r
void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump )\r
\r
/* Fill an xPortRegisterDump structure with the MicroBlaze context as it\r
was immediately before the exception occurrence. */\r
- \r
- /* First fill in the name and handle of the task that was in the Running \r
+\r
+ /* First fill in the name and handle of the task that was in the Running\r
state when the exception occurred. */\r
xRegisterDump.xCurrentTaskHandle = pxCurrentTCB;\r
xRegisterDump.pcCurrentTaskName = pcTaskGetTaskName( NULL );\r
xRegisterDump.ulR18 = pulStackPointerOnFunctionEntry[ portexR18_STACK_OFFSET ];\r
xRegisterDump.ulR19 = pulStackPointerOnFunctionEntry[ portexR19_STACK_OFFSET ];\r
xRegisterDump.ulMSR = pulStackPointerOnFunctionEntry[ portexMSR_STACK_OFFSET ];\r
- \r
+\r
/* Obtain the value of all other registers. */\r
xRegisterDump.ulR2_small_data_area = mfgpr( R2 );\r
xRegisterDump.ulR13_read_write_small_data_area = mfgpr( R13 );\r
xRegisterDump.ulEAR = mfear();\r
xRegisterDump.ulESR = mfesr();\r
xRegisterDump.ulEDR = mfedr();\r
- \r
+\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_exceptions - portexINSTRUCTION_SIZE;\r
\r
- #if XPAR_MICROBLAZE_0_USE_FPU == 1\r
+ #if XPAR_MICROBLAZE_0_USE_FPU != 0\r
{\r
xRegisterDump.ulFSR = mffsr();\r
}\r
xRegisterDump.pcExceptionCause = ( int8_t * const ) "XEXC_ID_STACK_VIOLATION or XEXC_ID_MMU";\r
break;\r
\r
- #if XPAR_MICROBLAZE_0_USE_FPU == 1\r
+ #if XPAR_MICROBLAZE_0_USE_FPU != 0\r
\r
case XEXC_ID_FPU :\r
xRegisterDump.pcExceptionCause = ( int8_t * const ) "XEXC_ID_FPU see ulFSR value";\r
#endif /* XPAR_MICROBLAZE_0_USE_FPU */\r
}\r
\r
- /* vApplicationExceptionRegisterDump() is a callback function that the \r
+ /* vApplicationExceptionRegisterDump() is a callback function that the\r
application can optionally define to receive the populated xPortRegisterDump\r
- structure. If the application chooses not to define a version of \r
- vApplicationExceptionRegisterDump() then the weekly defined default \r
+ structure. If the application chooses not to define a version of\r
+ vApplicationExceptionRegisterDump() then the weekly defined default\r
implementation within this file will be called instead. */\r
vApplicationExceptionRegisterDump( &xRegisterDump );\r
\r
}\r
\r
/* Exclude the entire file if the MicroBlaze is not configured to handle\r
-exceptions, or the application defined configuration item \r
+exceptions, or the application defined configuration item\r
configINSTALL_EXCEPTION_HANDLERS is not set to 1. */\r
#endif /* ( MICROBLAZE_EXCEPTIONS_ENABLED == 1 ) && ( configINSTALL_EXCEPTION_HANDLERS == 1 ) */\r
\r