First post, by Rav
I worked some code to detect the size of the cache on my 486.
For now I have been using the ctc timer to measure the amount of time it take to read X amount of memory but I have some issue on where the tick interrupt to update the RTC (when the ctc complete it's loop) seam to lag and so the RTC tick is not necessarily updated when I do a reading
So to get an appropriate measurement I have to loop the "read the memory" like 125 times to get a reliable results.
Is there a better way than using the CTC to get the proper cache size value
Else I will have to add some calibration code to check how much time I have to read the memory (lowest amount, 32KB) to get a reliable measurement instead of using the fix value of 125 (because while it work fine on my Cyrix 5x86, it will take too much time on slower machine and for them, a lower value would be fine)
Current test