diff options
| author | Uros Bizjak <ubizjak@gmail.com> | 2026-03-30 07:57:45 +0200 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2026-03-30 09:10:16 +0200 |
| commit | ec631bc3fb342ad7a2ec09433821e7201b7b15f9 (patch) | |
| tree | fe293ce7af5bbbe7a818547eb2986f3f25374990 /tools/perf/scripts/python | |
| parent | caf3cb2ef22e4b4ff9f6bb48f71ce30dae663326 (diff) | |
x86/asm/segment: Implement loadsegment()/savesegment() macros with static inline helpers
Convert the __loadsegment_simple() and savesegment() macro
implementations into static inline helper functions generated
via small helper macros.
Historically loadsegment() and savesegment() relied on macros that
embedded inline assembly. This approach obscures types, complicates
debugging, and makes the call sites harder for the compiler and static
analysis tools to reason about.
This change is purely mechanical and does not alter the generated code,
but improves readability, type safety, and compiler visibility of the
helpers.
Suggested-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://patch.msgid.link/20260330055823.5793-4-ubizjak@gmail.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
