]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(CLEAR_CACHE): New macro to force a cache flush.
authorUlrich Drepper <drepper@redhat.com>
Sat, 18 Dec 1999 23:03:32 +0000 (23:03 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 18 Dec 1999 23:03:32 +0000 (23:03 +0000)
sysdeps/arm/dl-machine.h

index ed95700453deb739349411d14be3fd7a3b8671bb..cce21a3f72f2eb20ae32f5b45f904220f8e5a607 100644 (file)
   VALID_ELF_ABIVERSION(hdr[EI_ABIVERSION]) \
 )
 
+#define CLEAR_CACHE(BEG,END)                                           \
+{                                                                      \
+  register unsigned long _beg __asm ("a1") = (unsigned long)(BEG);     \
+  register unsigned long _end __asm ("a2") = (unsigned long)((END) - (BEG));\
+  register unsigned long _flg __asm ("a3") = 0;                                \
+  __asm __volatile ("swi 0x9f0002");                                   \
+}
+
 /* Return nonzero iff E_MACHINE is compatible with the running host.  */
 static inline int __attribute__ ((unused))
 elf_machine_matches_host (Elf32_Half e_machine)