To provide MMU/cache configuration, two new tunables have been added:
kern.mem.cacheMode
kern.mem.pgTableSzLog2
kern.mem.cacheMode defines how processor caches should be configured. It is a bit field and is the logical OR of the following bit values:
Instruction cache enabled (L1)
Data cache enabled (L1)
Unified L2 cache enabled
For data access only
For instruction access only
In write-through mode
kern.mem.pgTableSzLog2 defines the memory size to be allocated to the MMU hardware page table (HTAB). To force the HTAB table size to be a power of 2, the tunable value is defined as Log2(size). Thus, 2^kern.mem.pgTableSzLog2 bytes are allocated to the HTAB table. kern.mem.pgTableSzLog2 must be in the value range [16..25].
This support applies to the PowerPC platform only.