[PATCH] libc: arm: setjmp jmp_buf exagerated size
Bernhard Krug <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Patch sets correct jmp_buf size for armv6-m conforming to implementation in setjmp.S FYI a table of cortex architectures: __ARM_ARCH_6M__ cortex-m0/m0+/m1 no fpu option __ARM_ARCH_7M__ cortex-m3 no fpu option __ARM_ARCH_7EM__ cortex-m4 optional fpu check using __ARM_FP
setjmp.patch
(text/x-diff, 411 B)
--- /usr/arm-none-eabi/include/machine/setjmp.h 2023-02-13 17:06:37.000000000 +0100 +++ setjmp.h 2023-02-15 11:47:15.668073267 +0100 @@ -9,7 +9,9 @@ #define _JBTYPE unsigned long #endif -#if defined(__arm__) || defined(__thumb__) +#ifdef __ARM_ARCH_6M__ +#define _JBLEN 10 /* r4 - r10, fp, sp, lr */ +#elif defined(__arm__) || defined(__thumb__) /* * All callee preserved registers: * core registers: