Forum Discussion
Altera_Forum
Honored Contributor
20 years ago> after u-boot start. there is 2k dcache in my board, if i use hal libary, where
> can download this libary? There is no need to use the HAL for u-boot. You can use the CACHE_BYPASS macro (not recommended), readx/writex (asm/io.h), or the flush_dache() operation (asm/cache.h) -- depending on what you are trying to do. If your device is capable of acting as a bus master, you should use the u-boot flush_dcache operation after initializing a transmit buffer, or before passing a receive buffer to the bus master (make sure the rx buffer is invalidated). If your device is not capable of acting as a bus master, you have no need to use any of the cache bypass macros when reading/writing the buffer -- only for reading or writing the hardware registers. Regards, --Scott