\r
void vTrapInstallHandlers( void )\r
{\r
- if ( 0 == _install_trap_handler ( portMMU_TRAP, vMMUTrap ) )\r
+ if( 0 == _install_trap_handler ( portMMU_TRAP, vMMUTrap ) )\r
{\r
_debug();\r
}\r
- if ( 0 == _install_trap_handler ( portIPT_TRAP, vInternalProtectionTrap ) )\r
- {\r
- _debug();\r
- }\r
- if ( 0 == _install_trap_handler ( portIE_TRAP, vInstructionErrorTrap ) )\r
+\r
+ if( 0 == _install_trap_handler ( portIPT_TRAP, vInternalProtectionTrap ) )\r
{\r
_debug();\r
}\r
- if ( 0 == _install_trap_handler ( portCM_TRAP, vContextManagementTrap ) )\r
+\r
+ if( 0 == _install_trap_handler ( portIE_TRAP, vInstructionErrorTrap ) )\r
{\r
_debug();\r
}\r
- if ( 0 == _install_trap_handler ( portSBP_TRAP, vSystemBusAndPeripheralsTrap ) )\r
+\r
+ if( 0 == _install_trap_handler ( portCM_TRAP, vContextManagementTrap ) )\r
{\r
_debug();\r
}\r
- if ( 0 == _install_trap_handler ( portASSERT_TRAP, vAssertionTrap ) )\r
+\r
+ if( 0 == _install_trap_handler ( portSBP_TRAP, vSystemBusAndPeripheralsTrap ) )\r
{\r
_debug();\r
}\r
-/* Trap Handler 6 (Syscall) is installed in port.c as it is fundamental to\r
- * the OS operation. These trap handlers is are place holders.\r
- * if ( 0 != _install_trap_handler ( portMMU_TRAP, vMMUTrap ) )\r
+\r
+ if( 0 == _install_trap_handler ( portASSERT_TRAP, vAssertionTrap ) )\r
{\r
_debug();\r
}\r
-*/\r
- if ( 0 == _install_trap_handler ( portNMI_TRAP, vNonMaskableInterruptTrap ) )\r
+\r
+ if( 0 == _install_trap_handler ( portNMI_TRAP, vNonMaskableInterruptTrap ) )\r
{\r
_debug();\r
}\r
\r
void vMMUTrap( int iTrapIdentification )\r
{\r
- switch ( iTrapIdentification )\r
+ switch( iTrapIdentification )\r
{\r
case portTIN_MMU_VIRTUAL_ADDRESS_FILL:\r
case portTIN_MMU_VIRTUAL_ADDRESS_PROTECTION:\r
void vInternalProtectionTrap( int iTrapIdentification )\r
{\r
/* Deliberate fall through to default. */\r
- switch ( iTrapIdentification )\r
+ switch( iTrapIdentification )\r
{\r
case portTIN_IPT_PRIVILIGED_INSTRUCTION:\r
/* Instruction is not allowed at current execution level, eg DISABLE at User-0. */\r
void vInstructionErrorTrap( int iTrapIdentification )\r
{\r
/* Deliberate fall through to default. */\r
- switch ( iTrapIdentification )\r
+ switch( iTrapIdentification )\r
{\r
case portTIN_IE_ILLEGAL_OPCODE:\r
case portTIN_IE_UNIMPLEMENTED_OPCODE:\r
void vContextManagementTrap( int iTrapIdentification )\r
{\r
/* Deliberate fall through to default. */\r
- switch ( iTrapIdentification )\r
+ switch( iTrapIdentification )\r
{\r
case portTIN_CM_FREE_CONTEXT_LIST_DEPLETION:\r
case portTIN_CM_CALL_DEPTH_OVERFLOW:\r
void vSystemBusAndPeripheralsTrap( int iTrapIdentification )\r
{\r
/* Deliberate fall through to default. */\r
- switch ( iTrapIdentification )\r
+ switch( iTrapIdentification )\r
{\r
case portTIN_SBP_PROGRAM_FETCH_SYNCHRONOUS_ERROR:\r
case portTIN_SBP_DATA_ACCESS_SYNCHRONOUS_ERROR:\r
void vAssertionTrap( int iTrapIdentification )\r
{\r
/* Deliberate fall through to default. */\r
- switch ( iTrapIdentification )\r
+ switch( iTrapIdentification )\r
{\r
case portTIN_ASSERT_ARITHMETIC_OVERFLOW:\r
case portTIN_ASSERT_STICKY_ARITHMETIC_OVERFLOW:\r
void vNonMaskableInterruptTrap( int iTrapIdentification )\r
{\r
/* Deliberate fall through to default. */\r
- switch ( iTrapIdentification )\r
+ switch( iTrapIdentification )\r
{\r
case portTIN_NMI_NON_MASKABLE_INTERRUPT:\r
default:\r