diff options
| author | Samuel Holland <[email protected]> | 2024-03-27 04:49:50 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2024-04-29 17:49:32 +0000 |
| commit | 74cd17792d28162fe692d5a25fe5cc081203ad19 (patch) | |
| tree | 0658bc25719b17d844fca2068f71fe09991b3a44 /scripts/generate_rust_target.rs | |
| parent | riscv: Avoid TLB flush loops when affected by SiFive CIP-1200 (diff) | |
| download | kernel-74cd17792d28162fe692d5a25fe5cc081203ad19.tar.gz kernel-74cd17792d28162fe692d5a25fe5cc081203ad19.zip | |
riscv: mm: Introduce cntx2asid/cntx2version helper macros
When using the ASID allocator, the MM context ID contains two values:
the ASID in the lower bits, and the allocator version number in the
remaining bits. Use macros to make this separation more obvious.
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
