Subversion Repositories HelenOS

Rev

Rev 1849 | Rev 1856 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1849 Rev 1855
Line 313... Line 313...
313
static inline void asi_u64_write(asi_t asi, uintptr_t va, uint64_t v)
313
static inline void asi_u64_write(asi_t asi, uintptr_t va, uint64_t v)
314
{
314
{
315
    __asm__ volatile ("stxa %0, [%1] %2\n" : :  "r" (v), "r" (va), "i" (asi) : "memory");
315
    __asm__ volatile ("stxa %0, [%1] %2\n" : :  "r" (v), "r" (va), "i" (asi) : "memory");
316
}
316
}
317
 
317
 
-
 
318
/** Flush all valid register windows to memory. */
-
 
319
static inline void flushw(void)
-
 
320
{
-
 
321
    __asm__ volatile ("flushw\n");
-
 
322
}
-
 
323
 
318
void cpu_halt(void);
324
void cpu_halt(void);
319
void cpu_sleep(void);
325
void cpu_sleep(void);
320
void asm_delay_loop(uint32_t t);
326
void asm_delay_loop(uint32_t t);
321
 
327
 
322
#endif
328
#endif