Skip to content

Commit 2d979ee

Browse files
committed
ohci: Add functions used for explicit cache operations
1 parent 5fb3c09 commit 2d979ee

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/portable/ohci/ohci.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ enum {
143143
PID_FROM_TD = 0,
144144
};
145145

146+
//--------------------------------------------------------------------+
147+
// Support for explicit D-cache operations
148+
//--------------------------------------------------------------------+
149+
TU_ATTR_WEAK bool hcd_dcache_clean(void const* addr, uint32_t data_size) { (void) addr; (void) data_size; return true; }
150+
TU_ATTR_WEAK bool hcd_dcache_invalidate(void const* addr, uint32_t data_size) { (void) addr; (void) data_size; return true; }
151+
#ifndef hcd_dcache_uncached
152+
#define hcd_dcache_uncached(x) (x)
153+
#endif
154+
146155
//--------------------------------------------------------------------+
147156
// INTERNAL OBJECT & FUNCTION DECLARATION
148157
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)