kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

icache_arm.c (313B)


      1 /* aarch64 / arm32 icache flush. __builtin___clear_cache lowers to the
      2  * arch-correct DC CVAU + IC IVAU + ISB sequence (or the libgcc helper on
      3  * arm32). */
      4 
      5 #include <stddef.h>
      6 
      7 #include "env_internal.h"
      8 
      9 void env_flush_icache(void* addr, size_t n) {
     10   __builtin___clear_cache((char*)addr, (char*)addr + n);
     11 }