Port-powerpc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Variable cache sizes
| I plan to add:
|
| struct cache_info {
| int dcache_size;
| int dcache_line_size;
| int icache_size;
| int icache_line_size;
| };
It turns out that this also needs to be exported to
userland, so I will add sysctl("machdep:cacheinfo")
to fetch it. And __syncicache() will be modified
to take into account machines that have no I$ or D$.
I expect that any L2 or L3 caches do not need to be
similarly exposed to userland.
Eduardo
Home |
Main Index |
Thread Index |
Old Index