- add an inline C function for the assembler operation CL1FLUSHMB
- works only on the SCC git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@269 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
parent
6346f54594
commit
0419142d83
1 changed files with 9 additions and 0 deletions
|
@ -86,6 +86,15 @@ inline static uint64_t rdmsr(uint32_t msr) {
|
|||
return ((uint64_t)high << 32) | low;
|
||||
}
|
||||
|
||||
/*
|
||||
* invalidate (not flush!) lines in L1 that map to MPB lines
|
||||
*/
|
||||
inline static void cache_invalidate(void) {
|
||||
#ifdef CONFIG_ROCKCREEK
|
||||
asm volatile (".byte 0x0f; .byte 0x0a;\n" ); // CL1FLUSHMB
|
||||
#endif
|
||||
}
|
||||
|
||||
#define NOP1 asm volatile ("nop")
|
||||
#define NOP2 asm volatile ("nop;nop")
|
||||
#define NOP4 asm volatile ("nop;nop;nop;nop")
|
||||
|
|
Loading…
Add table
Reference in a new issue