Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/dev/ic
On 29-Oct-2006 Izumi Tsutsui wrote:
> But I don't know the way how to determine possible maximum cacheline
> size at compile time because cache design could be configurable.
> Some sgimips machines could have 128 bytes, but HPPA machines
> might have larger one. Do you have any good idea how to implement it?
> Check it at runtime and calculate offsets dynamically?
For the POWER chips, certain versions had different cacheline sizes from chip
to chip. There is an asm op to determine the cacheline size. We could make a
getcachelinesize() function, but I don't think we can hardcode it at compile
time.
---
Tim Rightnour <root%garbled.net@localhost>
NetBSD: Free multi-architecture OS http://www.netbsd.org/
Genecys: Open Source 3D MMORPG: http://www.genecys.org/
Home |
Main Index |
Thread Index |
Old Index