Subversion Repositories HelenOS

Rev

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

Rev 1885 Rev 1899
Line 356... Line 356...
356
static inline void nucleus_leave(void)
356
static inline void nucleus_leave(void)
357
{
357
{
358
    __asm__ volatile ("wrpr %g0, %g0, %tl\n");
358
    __asm__ volatile ("wrpr %g0, %g0, %tl\n");
359
}
359
}
360
 
360
 
-
 
361
/** Read UPA_CONFIG register.
-
 
362
 *
-
 
363
 * @return Value of the UPA_CONFIG register.
-
 
364
 */
-
 
365
static inline uint64_t upa_config_read(void)
-
 
366
{
-
 
367
    return asi_u64_read(ASI_UPA_CONFIG, 0);
-
 
368
}
-
 
369
 
361
extern void cpu_halt(void);
370
extern void cpu_halt(void);
362
extern void cpu_sleep(void);
371
extern void cpu_sleep(void);
363
extern void asm_delay_loop(const uint32_t usec);
372
extern void asm_delay_loop(const uint32_t usec);
364
 
373
 
365
extern uint64_t read_from_ag_g7(void);
374
extern uint64_t read_from_ag_g7(void);