diff options
author | Sahil Siddiq <sahilcdq0@gmail.com> | 2025-04-19 21:18:18 +0530 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2025-04-20 07:06:54 +0100 |
commit | 0c4a6e79ef522554bc509294dfe69b24ee78205d (patch) | |
tree | d7a3f8b1941033b1955794192a9e4a766c210075 /drivers/usb/cdns3/cdns3-debug.h | |
parent | efabefb05aa1fe534ddb1839980824a763a7f1b0 (diff) | |
download | linux-0c4a6e79ef522554bc509294dfe69b24ee78205d.tar.gz linux-0c4a6e79ef522554bc509294dfe69b24ee78205d.tar.bz2 linux-0c4a6e79ef522554bc509294dfe69b24ee78205d.zip |
openrisc: Introduce new utility functions to flush and invalidate caches
According to the OpenRISC architecture manual, the dcache and icache may
not be present. When these caches are present, the invalidate and flush
registers may be absent. The current implementation does not perform
checks to verify their presence before utilizing cache registers, or
invalidating and flushing cache blocks.
Introduce new functions to detect the presence of cache components and
related special-purpose registers.
There are a few places where a range of addresses have to be flushed or
invalidated and the implementation is duplicated. Introduce new utility
functions and macros that generalize this implementation and reduce
duplication.
Signed-off-by: Sahil Siddiq <sahilcdq0@gmail.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions