You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2023/01/16 02:33:30 UTC

[GitHub] [nuttx] zyfeier opened a new pull request, #8125: arch/arm: Fix error in cache ops

zyfeier opened a new pull request, #8125:
URL: https://github.com/apache/nuttx/pull/8125

   ## Summary
   
   1.  Add cp15_invalidate_icache for invalidate the instruction cache within the specified region;
   2.  Fix typo error in cp15_cacheops.h;
   3.  Add barrier instruction for cache ops;
   
   ## Impact
   
   cache ops
   
   ## Testing
   
   bes2003


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] xiaoxiang781216 merged pull request #8125: arch/arm: Fix error in cache ops

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #8125:
URL: https://github.com/apache/nuttx/pull/8125


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [nuttx] masayuki2009 commented on pull request #8125: arch/arm: Fix error in cache ops

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on PR #8125:
URL: https://github.com/apache/nuttx/pull/8125#issuecomment-1383443148

   @zyfeier 
   
   ```
   In file included from armv7-a/arm_cache.c:29:
   Error: armv7-a/cp15_cacheops.h:951:6: error: conflicting types for 'cp15_invalidate_icache'; have 'void(uintptr_t,  uintptr_t)' {aka 'void(unsigned int,  unsigned int)'}
     951 | void cp15_invalidate_icache(uintptr_t start, uintptr_t end);
         |      ^~~~~~~~~~~~~~~~~~~~~~
   armv7-a/cp15_cacheops.h:705:20: note: previous definition of 'cp15_invalidate_icache' with type 'void(void)'
     705 | static inline void cp15_invalidate_icache(void)
         |                    ^~~~~~~~~~~~~~~~~~~~~~
   armv7-a/arm_cache.c: In function 'up_invalidate_icache_all':
   Error: armv7-a/arm_cache.c:111:3: error: too few arguments to function 'cp15_invalidate_icache'
     111 |   cp15_invalidate_icache();
         |   ^~~~~~~~~~~~~~~~~~~~~~
   In file included from armv7-a/arm_cache.c:29:
   armv7-a/cp15_cacheops.h:951:6: note: declared here
     951 | void cp15_invalidate_icache(uintptr_t start, uintptr_t end);
         |      ^~~~~~~~~~~~~~~~~~~~~~
   make[1]: *** [Makefile:144: arm_cache.o] Error 1
   In file included from armv7-a/arm_mmu.c:29:
   Error: armv7-a/cp15_cacheops.h:951:6: error: conflicting types for 'cp15_invalidate_icache'; have 'void(uintptr_t,  uintptr_t)' {aka 'void(unsigned int,  unsigned int)'}
     951 | void cp15_invalidate_icache(uintptr_t start, uintptr_t end);
         |      ^~~~~~~~~~~~~~~~~~~~~~
   armv7-a/cp15_cacheops.h:705:20: note: previous definition of 'cp15_invalidate_icache' with type 'void(void)'
     705 | static inline void cp15_invalidate_icache(void)
         |                    ^~~~~~~~~~~~~~~~~~~~~~
   make[1]: *** [Makefile:144: arm_mmu.o] Error 1
   In file included from armv7-a/cp15_cacheops.c:29:
   Error: armv7-a/cp15_cacheops.h:951:6: error: conflicting types for 'cp15_invalidate_icache'; have 'void(uintptr_t,  uintptr_t)' {aka 'void(unsigned int,  unsigned int)'}
     951 | void cp15_invalidate_icache(uintptr_t start, uintptr_t end);
         |      ^~~~~~~~~~~~~~~~~~~~~~
   armv7-a/cp15_cacheops.h:705:20: note: previous definition of 'cp15_invalidate_icache' with type 'void(void)'
     705 | static inline void cp15_invalidate_icache(void)
         |                    ^~~~~~~~~~~~~~~~~~~~~~
   armv7-a/cp15_cacheops.c: In function 'cp15_coherent_dcache':
   Error: armv7-a/cp15_cacheops.c:195:3: error: too few arguments to function 'cp15_invalidate_icache'
     195 |   cp15_invalidate_icache();
         |   ^~~~~~~~~~~~~~~~~~~~~~
   In file included from armv7-a/cp15_cacheops.c:29:
   armv7-a/cp15_cacheops.h:951:6: note: declared here
     951 | void cp15_invalidate_icache(uintptr_t start, uintptr_t end);
         |      ^~~~~~~~~~~~~~~~~~~~~~
   make[1]: *** [Makefile:144: cp15_cacheops.o] Error 1
   make[1]: Target 'libarch.a' not remade because of errors.
   make: *** [tools/LibTargets.mk:158: arch/arm/src/libarch.a] Error
   ```


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org