Skip to main content

TLB_INDEX_BITS

Constant TLB_INDEX_BITS 

Source
pub const TLB_INDEX_BITS: u32 = 6;
Expand description

log2 of the number of entries. 64 entries covers the working set of the code this runs — a stack page, a couple of data pages, the code page — with room for a few more before it thrashes, and the whole table stays inside a few cache lines.