login
Header Space

 
 

Re: Cyrix cacheing - helpful info?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Date: Monday, June 14, 1993 - 7:56 pm

In article <1993Jun13.174944.9099@cc.gatech.edu> byron@cc.gatech.edu (Byron A Jeff) writes:

Normally for a board designed to take one of these cyrix chips, the BIOS
should enable the cache on startup. But if it's in a normal 386 motherboard
you may find the following of some use.

Ok for Linux, try something like this in either 'startup' or the initial
kernel (assembly) code: (adjust to suit your favorite assembler :)

        mov     al,     0c0h            ; Select CCR0
        out     22h,    al

        mov     al,     022h            ; Set HOLD state to Flush Cache
        out     23h,    al              ; 640k - 1M non cachable

        mov     al,     0c6h            
        out     22h,    al

        mov     al,     00h             ; Set size of non cachable region 1
        out     23h,    al              ; to zero - i.e. disable it

Note: I haven't tried any of the above, it's just from reading values
out of the databook.  There are other bits in there which control various
things some of which are only appropriate to purpose built motherboards.

Something that you may require is the ability to set the non cachable regions,
there are four of them. They can to a size of 4k multiplied by powers of two,
and based at any 4k start. May be of use if you have linearly mapped video
ram.

Hope the above is of some use,

        DF
-- 
Derek Fawcus (G7FVS)                                df@eyrie.demon.co.uk
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Cyrix cacheing - helpful info?, Derek Fawcus, (Mon Jun 14, 7:56 pm)
speck-geostationary