This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 173150fe4a0bb781ccd1e8bf95df0c5ec7ac4a08 Author: Bowen Wang <[email protected]> AuthorDate: Tue Nov 3 00:40:45 2026 +0800 include/nuttx/rptun/rptun.h: take a pointer and size in RPTUN_INVALIDATE Make RPTUN_INVALIDATE() take a pointer and a size instead of an object, and add RPTUN_FLUSH() in the same form, so they can be used on a buffer of any length. RPTUN_INVALIDATE() has no user in the tree yet. Signed-off-by: Bowen Wang <[email protected]> --- include/nuttx/rptun/rptun.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/nuttx/rptun/rptun.h b/include/nuttx/rptun/rptun.h index 1e141c36142..540f8d4103b 100644 --- a/include/nuttx/rptun/rptun.h +++ b/include/nuttx/rptun/rptun.h @@ -64,9 +64,11 @@ ((FAR struct rptun_cmd_s *)&((FAR struct resource_table *)(r))->reserved[0]) #ifdef CONFIG_OPENAMP_CACHE -# define RPTUN_INVALIDATE(x) metal_cache_invalidate(&x, sizeof(x)) +# define RPTUN_INVALIDATE(p, s) metal_cache_invalidate(p, s) +# define RPTUN_FLUSH(p, s) metal_cache_flush(p, s) #else -# define RPTUN_INVALIDATE(x) +# define RPTUN_INVALIDATE(p, s) +# define RPTUN_FLUSH(p, s) #endif /* Access macros ************************************************************/
