Merge pull request #14422 from maribu/cortexm_thread_arch
cpu/cortexm_common: Fixes for thread_arch.c and dropped workaround
This commit is contained in:
commit
7cff1b915d
@ -1,10 +1,3 @@
|
||||
# thread_arch.c's inline assembler breaks when compiling with link time
|
||||
# optimization. see https://github.com/RIOT-OS/RIOT/issues/5774.
|
||||
SRC_NOLTO += thread_arch.c
|
||||
|
||||
# see https://github.com/RIOT-OS/RIOT/issues/5775.
|
||||
SRC_NOLTO += vectors_cortexm.c
|
||||
|
||||
DIRS = periph
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
||||
@ -372,6 +372,8 @@ void __attribute__((naked)) __attribute__((used)) isr_pendsv(void) {
|
||||
* causes end of exception*/
|
||||
#endif
|
||||
/* {r0-r3,r12,LR,PC,xPSR,s0-s15,FPSCR} are restored automatically on exception return */
|
||||
".ltorg \n" /* literal pool needed to access
|
||||
* sched_active_thread */
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user