mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 15:47:37 +01:00
(flush_cache): Move to flush-cache.S.
(Logical change 1.68)
This commit is contained in:
parent
feaf317bf2
commit
0e2f4866f2
1 changed files with 1 additions and 14 deletions
|
@ -67,20 +67,7 @@ struct fdesc
|
|||
# define get_gp(fdesc) (0)
|
||||
#endif
|
||||
|
||||
static void
|
||||
flush_cache (void *addr, unsigned long len)
|
||||
{
|
||||
#ifdef __ia64__
|
||||
void *end = (char *) addr + len;
|
||||
|
||||
while (addr < end)
|
||||
{
|
||||
asm volatile ("fc %0" :: "r"(addr));
|
||||
addr = (char *) addr + 32;
|
||||
}
|
||||
asm volatile (";;sync.i;;srlz.i;;");
|
||||
#endif
|
||||
}
|
||||
extern void flush_cache (void *addr, size_t len);
|
||||
|
||||
void
|
||||
template (int i, template_t self,
|
||||
|
|
Loading…
Reference in a new issue