Skip to content

flash: workaround compiler error with FIH_PANIC #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 16, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
#define mbedtls_free free
#endif

#if defined(ECP_MONTGOMERY)
static int ecc_conv_scalar_to_mpi( uint8_t * scalar, size_t scalarSize, mbedtls_mpi * X)
{
CCError_t status;
Expand Down Expand Up @@ -139,7 +140,6 @@ static int ecc_conv_mpi_to_scalar( const mbedtls_mpi * X, uint8_t *scalar, size_
return 0;
}

#if defined(ECP_MONTGOMERY)
static int ecp_mont_mul( mbedtls_ecp_point *R,
const mbedtls_mpi *m, const mbedtls_ecp_point *P )
{
Expand Down
1 change: 1 addition & 0 deletions platform/ext/common/boot_hal_bl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ __WEAK void boot_platform_start_next_image(struct boot_arm_vector_table *vt)
__WEAK __NO_RETURN void boot_platform_error_state(uint32_t error)
{
FIH_PANIC;
__builtin_unreachable();
}

__WEAK int boot_platform_pre_load(uint32_t image_id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ static cc3xx_err_t setup_dfa_countermeasures(void)
* to be switched off.
*/
{
(void)lock_dfa_enabled;
#endif /* CC3XX_CONFIG_AES_TUNNELLING_ENABLE */
P_CC3XX->ao.host_ao_lock_bits &= ~(0b1U << 7); /* Unset HOST_FORCE_DFA_ENABLE */
}
Expand Down
1 change: 1 addition & 0 deletions platform/ns/toolchain_ns_GNUARM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ add_compile_options(
-specs=nosys.specs
-Wall
-Wno-format
-Wno-array-parameter
-Wno-return-type
-Wno-unused-but-set-variable
-c
Expand Down
1 change: 1 addition & 0 deletions toolchain_GNUARM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ add_compile_options(
-specs=nosys.specs
-Wall
-Wno-format
-Wno-array-parameter
-Wno-return-type
-Wno-unused-but-set-variable
-c
Expand Down