Subject: Re: Variable cache sizes
To: None <,>
From: None <>
List: port-powerpc
Date: 02/21/2002 22:12:35
| 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.