File: cache-alpha.c

package info (click to toggle)
ffcall 1.8-4.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,752 kB
  • ctags: 3,102
  • sloc: asm: 19,563; ansic: 11,737; sh: 5,402; makefile: 885
file content (16 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Instruction cache flushing for alpha */

/*
 * Copyright 1997 Bruno Haible, <haible@clisp.cons.org>
 *
 * This is free software distributed under the GNU General Public Licence
 * described in the file COPYING. Contact the author if you don't have this
 * or can't live with it. There is ABSOLUTELY NO WARRANTY, explicit or implied,
 * on this software.
 */

void __TR_clear_cache (void)
{
  /* Taken from gforth-0.3.0. */
  asm volatile ("call_pal 0x86"); /* imb (instruction-memory barrier) */
}