]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[libc] Centralise architecture-independent portions of setjmp.h
authorMichael Brown <mcb30@ipxe.org>
Thu, 12 Sep 2024 13:17:20 +0000 (14:17 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 12 Sep 2024 14:01:04 +0000 (15:01 +0100)
commit5de5d4626e192f5d0e6c97e14ce03b92a43622b3
tree3947d6e1f9b5c877140006f248147f2e503e8e41
parenta1830ff43c5f8ee2957eb537f24670265ebd233b
[libc] Centralise architecture-independent portions of setjmp.h

The definitions of the setjmp() and longjmp() functions are common to
all architectures, with only the definition of the jump buffer
structure being architecture-specific.

Move the architecture-specific portions to bits/setjmp.h and provide a
common setjmp.h for the function definitions.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/arm32/include/bits/setjmp.h [moved from src/arch/arm32/include/setjmp.h with 68% similarity]
src/arch/arm64/include/bits/setjmp.h [moved from src/arch/arm64/include/setjmp.h with 72% similarity]
src/arch/i386/include/bits/setjmp.h [moved from src/arch/i386/include/setjmp.h with 60% similarity]
src/arch/loong64/include/bits/setjmp.h [new file with mode: 0644]
src/arch/x86_64/include/bits/setjmp.h [moved from src/arch/x86_64/include/setjmp.h with 64% similarity]
src/include/setjmp.h [moved from src/arch/loong64/include/setjmp.h with 52% similarity]