Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions platform/source/TARGET_CORTEX_M/TOOLCHAIN_IAR/except.S
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ FAULT_TYPE_BUS_FAULT EQU 0x30
FAULT_TYPE_USAGE_FAULT EQU 0x40

PRESERVE8
SECTION .rodata:DATA:NOROOT(2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this doing?

THUMB

SECTION .text:CODE:NOROOT(2)
Expand All @@ -58,7 +59,7 @@ BusFault_Handler
UsageFault_Handler
EXPORT UsageFault_Handler
MOVS R3,#FAULT_TYPE_USAGE_FAULT
; Fall into Fault_Handler
B Fault_Handler
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this required? To make Fault_Handler 4-byte aligned? But it doesn't need to be.


Fault_Handler
EXPORT Fault_Handler
Expand Down Expand Up @@ -111,7 +112,6 @@ Fault_Handler_Continue2
#else
B .
#endif
ALIGN
#endif

END