Changeset c52ed6b in mainline for arch/sparc64/include/barrier.h


Ignore:
Timestamp:
2005-12-12T23:55:08Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5bb8e45
Parents:
0bd4f56d
Message:

sparc64 work.
More ITLB and DTLB controlling functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/include/barrier.h

    r0bd4f56d rc52ed6b  
    4040#define write_barrier()
    4141
    42 #define flush()                 __asm__ volatile ("flush\n" ::: "memory")
     42/** Flush Instruction Memory. */
     43static inline void flush(void)
     44{
     45        /*
     46         * The FLUSH instruction takes address parameter,
     47         * but JPS1 implementations are free to ignore it.
     48         * The only requirement is that it is a valid address
     49         * as it is passed to D-MMU.
     50         */
     51        __asm__ volatile ("flush %sp\n");       /* %sp is guaranteed to reference mapped memory */
     52}
    4353
    4454#endif
Note: See TracChangeset for help on using the changeset viewer.