Subversion Repositories HelenOS

Rev

Rev 3771 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3771 Rev 3862
Line 54... Line 54...
54
#ifndef __ASM__
54
#ifndef __ASM__
55
 
55
 
56
#include <arch/types.h>
56
#include <arch/types.h>
57
#include <typedefs.h>
57
#include <typedefs.h>
58
#include <arch/register.h>
58
#include <arch/register.h>
59
#include <arch/sun4u/regdef.h>
59
#include <arch/regdef.h>
60
#include <arch/asm.h>
60
#include <arch/asm.h>
61
#include <arch/sun4u/arch.h>
61
#include <arch/arch.h>
62
 
62
 
63
#ifdef CONFIG_SMP
63
#ifdef CONFIG_SMP
64
#include <arch/mm/cache.h>
64
#include <arch/mm/cache.h>
65
#endif
65
#endif
66
 
66
 
-
 
67
typedef struct {
-
 
68
    uint32_t mid;           /**< Processor ID as read from
-
 
69
                         UPA_CONFIG/FIREPLANE_CONFIG. */
-
 
70
    ver_reg_t ver;
-
 
71
    uint32_t clock_frequency;   /**< Processor frequency in Hz. */
-
 
72
    uint64_t next_tick_cmpr;    /**< Next clock interrupt should be
-
 
73
                         generated when the TICK register
-
 
74
                         matches this value. */
-
 
75
} cpu_arch_t;
-
 
76
 
67
/**
77
/**
68
 * Reads the module ID (agent ID/CPUID) of the current CPU.
78
 * Reads the module ID (agent ID/CPUID) of the current CPU.
69
 */
79
 */
70
static inline uint32_t read_mid(void)
80
static inline uint32_t read_mid(void)
71
{
81
{