From: Bernhard Krug <b.krug@elektronenpumpe.de>
To: newlib@sourceware.org
Subject: [PATCH] libc: arm: setjmp jmp_buf exagerated size
Date: Wed, 15 Feb 2023 12:09:02 +0100 [thread overview]
Message-ID: <DBB0ABD2-604D-4B6D-953F-76F154266601@elektronenpumpe.de> (raw)
In-Reply-To: <D94205CA-1195-4F8C-9373-954C62F7DE8B@elektronenpumpe.de>
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: setjmp.patch --]
[-- Type: text/x-diff; name=setjmp.patch, Size: 411 bytes --]
--- /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:
next prev parent reply other threads:[~2023-02-15 11:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 22:47 Bernhard Krug
2023-02-15 11:09 ` Bernhard Krug [this message]
2023-02-15 15:56 ` [PATCH] " Bernhard Krug
2023-02-15 16:05 ` Bernhard Krug
2023-02-15 16:12 ` Richard Earnshaw
2023-02-15 16:40 ` Bernhard Krug
2023-02-15 17:01 ` Richard Earnshaw
2023-02-15 17:14 ` Bernhard Krug
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DBB0ABD2-604D-4B6D-953F-76F154266601@elektronenpumpe.de \
--to=b.krug@elektronenpumpe.de \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).