Subversion Repositories HelenOS

Rev

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

Rev 1880 Rev 1881
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_sparc64_ASM_H_
35
#ifndef KERN_sparc64_ASM_H_
36
#define KERN_sparc64_ASM_H_
36
#define KERN_sparc64_ASM_H_
37
 
37
 
-
 
38
#include <arch.h>
38
#include <typedefs.h>
39
#include <typedefs.h>
39
#include <arch/types.h>
40
#include <arch/types.h>
40
#include <arch/register.h>
41
#include <arch/register.h>
41
#include <config.h>
42
#include <config.h>
-
 
43
#include <time/clock.h>
42
 
44
 
43
/** Read Processor State register.
45
/** Read Processor State register.
44
 *
46
 *
45
 * @return Value of PSTATE register.
47
 * @return Value of PSTATE register.
46
 */
48
 */
Line 333... Line 335...
333
    __asm__ volatile ("wrpr %g0, %g0, %tl\n");
335
    __asm__ volatile ("wrpr %g0, %g0, %tl\n");
334
}
336
}
335
 
337
 
336
extern void cpu_halt(void);
338
extern void cpu_halt(void);
337
extern void cpu_sleep(void);
339
extern void cpu_sleep(void);
338
extern void asm_delay_loop(uint32_t t);
340
extern void asm_delay_loop(const uint32_t usec);
339
 
341
 
340
extern uint64_t read_from_ag_g7(void);
342
extern uint64_t read_from_ag_g7(void);
341
extern void write_to_ag_g6(uint64_t val);
343
extern void write_to_ag_g6(uint64_t val);
342
extern void write_to_ag_g7(uint64_t val);
344
extern void write_to_ag_g7(uint64_t val);
343
extern void write_to_ig_g6(uint64_t val);
345
extern void write_to_ig_g6(uint64_t val);