runtime constants: add x86 architecture support
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Jun 2024 19:32:14 +0000 (12:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 19 Jun 2024 19:34:34 +0000 (12:34 -0700)
commite3c92e81711d14b46c3121d36bc8e152cb843923
tree5cc3f60e606cd405acc34b259eb19a116c082ff8
parente78298556ee5d881f6679effb2a6743969ea6e2d
runtime constants: add x86 architecture support

This implements the runtime constant infrastructure for x86, allowing
the dcache d_hash() function to be generated using as a constant for
hash table address followed by shift by a constant of the hash index.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/runtime-const.h [new file with mode: 0644]
arch/x86/kernel/vmlinux.lds.S