gustavonihei commented on a change in pull request #4699:
URL: https://github.com/apache/incubator-nuttx/pull/4699#discussion_r732189613



##########
File path: include/nuttx/cache.h
##########
@@ -132,6 +132,70 @@ void up_invalidate_icache_all(void);
 #  define up_invalidate_icache_all()
 #endif
 
+/****************************************************************************
+ * Name: up_lock_icache
+ *
+ * Description:
+ *   lock the instruction cache within the specified region.
+ *   If the specified address if not present in the instruction cache,
+ *   Some archs transfer the line from memory, other archs wait the
+ *   address be read from memory, and then lock.
+ * Input Parameters:
+ *   start - virtual start address of region
+ *   end   - virtual end address of region + 1
+ *
+ * Returned Value:
+ *   None
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_ARCH_ICACHE_LOCK
+void up_lock_icache(uintptr_t start, uint32_t end);
+#else
+#  define up_lock_icache()
+#endif
+
+/****************************************************************************
+ * Name: up_unlock_icache
+ *
+ * Description:
+ *   Unlock the instruction cache within the specified region.
+ *
+ * Input Parameters:
+ *   start - virtual start address of region
+ *   end   - virtual end address of region + 1
+ *
+ * Returned Value:
+ *   None
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_ARCH_ICACHE_LOCK
+void up_unlock_icache(uintptr_t start, uint32_t end);

Review comment:
       ```suggestion
   void up_unlock_icache(uintptr_t start, uintptr_t end);
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to