aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2024-03-27 04:49:51 +0000
committerPalmer Dabbelt <[email protected]>2024-04-29 17:49:33 +0000
commitf58e5dc45fa93a2f2a0028381b2e06fe74ae9e2c (patch)
tree0102a9b57ed51756c9bb40dce62f8e4fd56cc3c0 /scripts/generate_rust_target.rs
parentriscv: mm: Introduce cntx2asid/cntx2version helper macros (diff)
downloadkernel-f58e5dc45fa93a2f2a0028381b2e06fe74ae9e2c.tar.gz
kernel-f58e5dc45fa93a2f2a0028381b2e06fe74ae9e2c.zip
riscv: mm: Use a fixed layout for the MM context ID
Currently, the size of the ASID field in the MM context ID dynamically depends on the number of hardware-supported ASID bits. This requires reading a global variable to extract either field from the context ID. Instead, allocate the maximum possible number of bits to the ASID field, so the layout of the context ID is known at compile-time. Reviewed-by: Alexandre Ghiti <[email protected]> Signed-off-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions