aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2022-11-25 09:42:14 +0000
committerThomas Gleixner <[email protected]>2023-02-06 14:48:54 +0000
commit717cce3bdcf34705417f641bf2fcdf9b038ec36c (patch)
treece78b376b3e6ddc1e8b151ed5f46acd61750f213 /lib/string.c
parentx86/vdso: Move VDSO image init to vdso2c generated code (diff)
downloadkernel-717cce3bdcf34705417f641bf2fcdf9b038ec36c.tar.gz
kernel-717cce3bdcf34705417f641bf2fcdf9b038ec36c.zip
x86/cpu: Provide the full setup for getcpu() on x86-32
setup_getcpu() configures two things: - it writes the current CPU & node information into MSR_TSC_AUX - it writes the same information as a GDT entry. By using the "full" setup_getcpu() on i386 it is possible to read the CPU information in userland via RDTSCP() or via LSL from the GDT. Provide an GDT_ENTRY_CPUNODE for x86-32 and make the setup function unconditionally available. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Roland Mainz <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions