shithub: riscv

Download patch

ref: b8cf3cb879a19c001796329ebe266104d13e63be
parent: f215b660b30cc5e5d318922f545441b4ac14b200
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 6 21:52:23 EST 2015

kernel: reduce Page structure size by changing Page.cachectl[]

there are no kernels currently that do page coloring,
so the only use of cachectl[] is flushing the icache
(on arm and ppc).

on pc64, cachectl consumes 32 bytes in each page resulting
in over 200 megabytes of overhead for 32gb of ram with 4K
pages.

this change removes cachectl[] and adds txtflush ulong
that is set to ~0 by pio() to instruct putmmu() to flush
the icache.