Subversion Repositories HelenOS

Rev

Rev 2089 | Rev 2141 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2089 Rev 2134
Line 37... Line 37...
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <arch/register.h>
39
#include <arch/register.h>
40
#include <arch/asm.h>
40
#include <arch/asm.h>
41
 
41
 
-
 
42
#ifdef CONFIG_SMP
-
 
43
#include <arch/mm/cache.h>
-
 
44
#endif
-
 
45
 
42
#define MANUF_FUJITSU       0x04
46
#define MANUF_FUJITSU       0x04
43
#define MANUF_ULTRASPARC    0x17    /**< UltraSPARC I, UltraSPARC II */
47
#define MANUF_ULTRASPARC    0x17    /**< UltraSPARC I, UltraSPARC II */
44
#define MANUF_SUN       0x3e
48
#define MANUF_SUN       0x3e
45
 
49
 
46
#define IMPL_ULTRASPARCI    0x10
50
#define IMPL_ULTRASPARCI    0x10
Line 51... Line 55...
51
#define IMPL_ULTRASPARCIV_PLUS  0x19
55
#define IMPL_ULTRASPARCIV_PLUS  0x19
52
 
56
 
53
#define IMPL_SPARC64V       0x5
57
#define IMPL_SPARC64V       0x5
54
 
58
 
55
typedef struct {
59
typedef struct {
56
    uint32_t mid;           /**< Processor ID as read from UPA_CONFIG. */
60
    uint32_t mid;           /**< Processor ID as read from
-
 
61
                         UPA_CONFIG. */
57
    ver_reg_t ver;
62
    ver_reg_t ver;
58
    uint32_t clock_frequency;   /**< Processor frequency in Hz. */
63
    uint32_t clock_frequency;   /**< Processor frequency in Hz. */
59
    uint64_t next_tick_cmpr;    /**< Next clock interrupt should be
64
    uint64_t next_tick_cmpr;    /**< Next clock interrupt should be
60
                                     generated when the TICK register
65
                         generated when the TICK register
61
                                     matches this value. */
66
                         matches this value. */
-
 
67
#ifdef CONFIG_SMP
-
 
68
    int dcache_active;
-
 
69
    dcache_shootdown_msg_t dcache_messages[DCACHE_MSG_QUEUE_LEN];
-
 
70
    count_t dcache_message_count;
-
 
71
#endif
62
} cpu_arch_t;
72
} cpu_arch_t;
63
   
73
   
64
#endif
74
#endif
65
 
75
 
66
/** @}
76
/** @}