All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] common: clean up usage of structure jmp_buf_data
@ 2025-03-02 14:21 Heinrich Schuchardt
  2025-03-02 14:21 ` [PATCH 1/5] sandbox: remove linux/types.h dependency in setjmp.h Heinrich Schuchardt
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Heinrich Schuchardt @ 2025-03-02 14:21 UTC (permalink / raw)
  To: Tom Rini
  Cc: Jerome Forissier, Simon Glass, Philipp Tomsich, Kever Yang,
	Rick Chen, Leo, Bin Meng, Ilias Apalodimas, Matthias Brugger,
	Patrice Chotard, Adriano Cordova, Sughosh Ganu,
	Vincent Stehlé, Janne Grunau, Yao Zi, u-boot,
	Heinrich Schuchardt

When implementing setjmp() we did not clearly separate the architecture
specific part from the non-specific part. The lead to code directly
accessing the architecture specific struct jmp_buf_data instead of using
jmp_buf.

With this series include setjmp.h is carved out from the architecture
specific implementations asm/setjmp.h.

All direct usages of asm/setjmp.h and struct jmp_buf_data are corrected.

Thanks to Zi for starting this clean-up.

Heinrich Schuchardt (4):
  sandbox: remove linux/types.h dependency in setjmp.h
  arm: include asm-generic/int-ll64.h in setjmp.h
  common: clean up setjmp.h
  arm: use type jmp_buf instead of struct jmp_buf_data

Yao Zi (1):
  efi_loader: Clean up usage of structure jmp_buf_data

 arch/arm/cpu/armv7/exception_level.c |  8 +++---
 arch/arm/cpu/armv8/exception_level.c |  8 +++---
 arch/arm/include/asm/setjmp.h        | 17 ++++--------
 arch/arm/mach-rockchip/bootrom.c     |  2 +-
 arch/riscv/include/asm/setjmp.h      | 15 +++--------
 arch/sandbox/cpu/cpu.c               |  2 +-
 arch/sandbox/include/asm/setjmp.h    | 18 +++----------
 arch/x86/include/asm/setjmp.h        | 11 +++-----
 include/efi_loader.h                 |  4 +--
 include/interrupt.h                  |  2 +-
 include/setjmp.h                     | 40 ++++++++++++++++++++++++++++
 lib/efi_loader/efi_boottime.c        |  9 +++----
 test/lib/longjmp.c                   |  2 +-
 13 files changed, 73 insertions(+), 65 deletions(-)
 create mode 100644 include/setjmp.h

-- 
2.48.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-03-11 12:45 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-02 14:21 [PATCH 0/5] common: clean up usage of structure jmp_buf_data Heinrich Schuchardt
2025-03-02 14:21 ` [PATCH 1/5] sandbox: remove linux/types.h dependency in setjmp.h Heinrich Schuchardt
2025-03-04 13:48   ` Jerome Forissier
2025-03-02 14:21 ` [PATCH 2/5] arm: include asm-generic/int-ll64.h " Heinrich Schuchardt
2025-03-02 16:01   ` Yao Zi
2025-03-02 16:18     ` Heinrich Schuchardt
2025-03-02 16:20       ` Yao Zi
2025-03-04 13:48   ` Jerome Forissier
2025-03-11 12:44   ` Ilias Apalodimas
2025-03-02 14:21 ` [PATCH 3/5] common: clean up setjmp.h Heinrich Schuchardt
2025-03-04 13:49   ` Jerome Forissier
2025-03-02 14:21 ` [PATCH 4/5] efi_loader: Clean up usage of structure jmp_buf_data Heinrich Schuchardt
2025-03-04 13:49   ` Jerome Forissier
2025-03-04 13:51   ` Ilias Apalodimas
2025-03-02 14:21 ` [PATCH 5/5] arm: use type jmp_buf instead of struct jmp_buf_data Heinrich Schuchardt
2025-03-04 13:49   ` Jerome Forissier
2025-03-04 13:51   ` Ilias Apalodimas
2025-03-04  9:10 ` [PATCH 0/5] common: clean up usage of structure jmp_buf_data Jerome Forissier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.