Skip to content

Commit

Permalink
cpu/cortexm: make SVC call non removable
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Laduranty <[email protected]>
  • Loading branch information
dylad committed May 15, 2024
1 parent 2279524 commit 4cc94fe
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion cpu/cortexm_common/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FEATURES_PROVIDED += arch_32bit
FEATURES_PROVIDED += arch_arm
FEATURES_PROVIDED += cortexm_svc
FEATURES_PROVIDED += cpp
FEATURES_PROVIDED += cpu_check_address
FEATURES_PROVIDED += cpu_core_cortexm
Expand Down
8 changes: 0 additions & 8 deletions cpu/cortexm_common/thread_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ void __attribute__((naked)) __attribute__((used)) isr_pendsv(void) {
}
#endif

#ifdef MODULE_CORTEXM_SVC
void __attribute__((naked)) __attribute__((used)) isr_svc(void)
{
/* these two variants do exactly the same, but Cortex-M3 can use Thumb2
Expand Down Expand Up @@ -522,13 +521,6 @@ static void __attribute__((used)) _svc_dispatch(unsigned int *svc_args)
}
}

#else /* MODULE_CORTEXM_SVC */
void __attribute__((used)) isr_svc(void)
{
SCB->ICSR = SCB_ICSR_PENDSVSET_Msk;
}
#endif /* MODULE_CORTEXM_SVC */

void sched_arch_idle(void)
{
#ifdef MODULE_PM_LAYERED
Expand Down
1 change: 0 additions & 1 deletion makefiles/features_existing.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ FEATURES_EXISTING := \
cortexm_fpu \
cortexm_mpu \
cortexm_stack_limit \
cortexm_svc \
cpp \
cpu_arm7tdmi_gba \
cpu_atmega1281 \
Expand Down
3 changes: 0 additions & 3 deletions makefiles/features_modules.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ endif
# feature is used
USEMODULE += $(filter cortexm_stack_limit, $(FEATURES_USED))

# select cortexm_svc pseudomodule if the corresponding feature is used
USEMODULE += $(filter cortexm_svc, $(FEATURES_USED))

# select core_idle_thread if the feature no_idle_thread is *not* used
ifeq (, $(filter no_idle_thread, $(FEATURES_USED)))
ifneq (,$(filter core_thread, $(USEMODULE)))
Expand Down
1 change: 0 additions & 1 deletion makefiles/pseudomodules.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ PSEUDOMODULES += conn_can_isotp_multi
PSEUDOMODULES += cord_ep_standalone
PSEUDOMODULES += core_%
PSEUDOMODULES += cortexm_fpu
PSEUDOMODULES += cortexm_svc
PSEUDOMODULES += cpp
PSEUDOMODULES += cpu_check_address
PSEUDOMODULES += crc16_fast
Expand Down

0 comments on commit 4cc94fe

Please sign in to comment.