x86/asm-offsets: Export certain 'struct cpuinfo_x86' fields for 64-bit asm use too
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 May 2025 10:42:46 +0000 (12:42 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 15 May 2025 07:12:07 +0000 (09:12 +0200)
commit25219c2578b32c96087569d074e32c8ae634d602
treeb747a783d271069c2d44d34556596a29ceb6e247
parent64797551baec252f953fa8234051f88b0c368ed5
x86/asm-offsets: Export certain 'struct cpuinfo_x86' fields for 64-bit asm use too

Expose certain 'struct cpuinfo_x86' fields via asm-offsets for x86_64
too, so that it will be possible to set CPU capabilities from 64-bit
asm code.

32-bit already used these fields, so simply move those offset exports into
the unified asm-offsets.c file.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250514104242.1275040-12-ardb+git@google.com
arch/x86/kernel/asm-offsets.c
arch/x86/kernel/asm-offsets_32.c