mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-13 13:37:38 +08:00
(CLEAR_CACHE): New macro to force a cache flush.
This commit is contained in:
parent
baa41915ea
commit
9d1306dd21
@ -32,6 +32,14 @@
|
|||||||
&& VALID_ELF_OSABI (hdr[EI_OSABI]) \
|
&& VALID_ELF_OSABI (hdr[EI_OSABI]) \
|
||||||
&& VALID_ELF_ABIVERSION (hdr[EI_ABIVERSION])
|
&& 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. */
|
/* Return nonzero iff E_MACHINE is compatible with the running host. */
|
||||||
static inline int __attribute__ ((unused))
|
static inline int __attribute__ ((unused))
|
||||||
elf_machine_matches_host (Elf32_Half e_machine)
|
elf_machine_matches_host (Elf32_Half e_machine)
|
||||||
|
Loading…
Reference in New Issue
Block a user