ao_sys_kseg0.h
System KSEG0

Include

xc.h

Functions

ao_sys_kseg0_cacheable

#define ao_sys_kseg0_cacheable()                  \
(                                                 \
    _bcsc0(_CP0_CONFIG, _CP0_CONFIG_SELECT, 4, 3) \
)

Sets the KSEG0 cache coherency algorithm to cacheable.

ao_sys_kseg0_uncached

#define ao_sys_kseg0_uncached()                   \
(                                                 \
    _bcsc0(_CP0_CONFIG, _CP0_CONFIG_SELECT, 5, 2) \
)

Sets the KSEG0 cache coherency algorithm to uncached.