Cortex M3 MPS2: fix alignment warning from assembler (#1266)

* Cortex M3 MPS2: fix alignment warning from assembler

Fix assembler alignment warnings for Cortex M3 MPS2:
Warning: section does not have enough alignment to ensure safe PC-relative loads

Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
pull/1270/head
Florian La Roche 5 months ago committed by GitHub
parent b0c9468ad6
commit 9245b4aaac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -94,7 +94,7 @@ jobs:
if: success() && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release-candidate' )
env:
GIT_SHA:
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: doxygen.zip-${{ github.sha }}
path: ./freertos/doxygen.zip
@ -144,7 +144,7 @@ jobs:
Upload memory size report as artifact (for main and
release-candidate ONLY)
if: success() && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release-candidate' )
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: freertos-memory-estimates
path: ./freertos_lts_memory_estimates.json

@ -28,12 +28,12 @@ jobs:
make -C FreeRTOS/Test/CMock lcovhtml
lcov --config-file FreeRTOS/Test/CMock/lcovrc --summary FreeRTOS/Test/CMock/build/cmock_test.info > FreeRTOS/Test/CMock/build/cmock_test_summary.txt
- name: Archive code coverage data
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: FreeRTOS/Test/CMock/build/cmock_test*
- name: Archive code coverage html report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: FreeRTOS/Test/CMock/build/coverage
@ -69,12 +69,12 @@ jobs:
make -C FreeRTOS/Test/CMock lcovhtml
lcov --config-file FreeRTOS/Test/CMock/lcovrc --summary FreeRTOS/Test/CMock/build/cmock_test.info > FreeRTOS/Test/CMock/build/cmock_test_summary.txt
- name: Archive code coverage data
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: FreeRTOS/Test/CMock/build/cmock_test*
- name: Archive code coverage html report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: FreeRTOS/Test/CMock/build/coverage

@ -133,9 +133,8 @@ void Default_Handler2( void )
" mrseq r0, msp \n"
" mrsne r0, psp \n"
" ldr r1, [r0, #24] \n"
" ldr r2, handler2_address_const \n"
" ldr r2, =prvGetRegistersFromStack \n"
" bx r2 \n"
" handler2_address_const: .word prvGetRegistersFromStack \n"
);
}

@ -142,9 +142,8 @@ void HardFault_Handler( void )
" mrseq r0, msp \n"
" mrsne r0, psp \n"
" ldr r1, [r0, #24] \n"
" ldr r2, handler2_address_const \n"
" ldr r2, =prvGetRegistersFromStack \n"
" bx r2 \n"
" handler2_address_const: .word prvGetRegistersFromStack \n"
);
}

@ -134,9 +134,8 @@ void HardFault_Handler( void )
" mrseq r0, msp \n"
" mrsne r0, psp \n"
" ldr r1, [r0, #24] \n"
" ldr r2, handler2_address_const \n"
" ldr r2, =prvGetRegistersFromStack \n"
" bx r2 \n"
" handler2_address_const: .word prvGetRegistersFromStack \n"
);
}
@ -149,9 +148,8 @@ void MemMang_Handler( void )
" ite eq \n"
" mrseq r0, msp \n"
" mrsne r0, psp \n"
" ldr r1, handler3_address_const \n"
" ldr r1, =vHandleMemoryFault \n"
" bx r1 \n"
" handler3_address_const: .word vHandleMemoryFault \n"
);
}
@ -163,9 +161,8 @@ void BusFault_Handler( void )
" ite eq \n"
" mrseq r0, msp \n"
" mrsne r0, psp \n"
" ldr r1, handler4_address_const \n"
" ldr r1, =vHandleMemoryFault \n"
" bx r1 \n"
" handler4_address_const: .word vHandleMemoryFault \n"
);
}
@ -177,9 +174,8 @@ void UsageFault_Handler( void )
" ite eq \n"
" mrseq r0, msp \n"
" mrsne r0, psp \n"
" ldr r1, handler5_address_const \n"
" ldr r1, =vHandleMemoryFault \n"
" bx r1 \n"
" handler5_address_const: .word vHandleMemoryFault \n"
);
}
@ -191,9 +187,8 @@ void Debug_Handler( void )
" ite eq \n"
" mrseq r0, msp \n"
" mrsne r0, psp \n"
" ldr r1, handler6_address_const \n"
" ldr r1, =vHandleMemoryFault \n"
" bx r1 \n"
" handler6_address_const: .word vHandleMemoryFault \n"
);
}

Loading…
Cancel
Save