From: Ulrich Drepper Date: Sat, 18 Dec 1999 23:03:32 +0000 (+0000) Subject: (CLEAR_CACHE): New macro to force a cache flush. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68a98ffb56996249a1181fb31b98c53961bc9699;p=thirdparty%2Fglibc.git (CLEAR_CACHE): New macro to force a cache flush. --- diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h index ed95700453d..cce21a3f72f 100644 --- a/sysdeps/arm/dl-machine.h +++ b/sysdeps/arm/dl-machine.h @@ -35,6 +35,14 @@ 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)