Update jmpbuf.h

This commit is contained in:
kasperk81
2025-05-25 05:38:46 +03:00
committed by Stephen M. Webb
parent 66f9d10fc8
commit 2ad7f439d6

View File

@@ -23,6 +23,14 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#if defined __FreeBSD__
#define JB_SP 1
#define JB_RP 14
#define JB_MASK_SAVED 0
#define JB_MASK 27
#else
/* https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/riscv/setjmp.S;h=0b92016b311b11aa9eeb62b38c670a262f1924c9;hb=HEAD */
#define JB_SP 13
#define JB_RP 0
@@ -43,3 +51,5 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#else
# error "Add offsets here"
#endif /* __riscv_xlen */
#endif /* __FreeBSD__ */