Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3861 → Rev 3862

/branches/sparc/kernel/arch/sparc64/include/cpu.h
37,24 → 37,11
 
#ifndef __ASM__
 
#include <arch/types.h>
#include <typedefs.h>
#include <arch/register.h>
 
typedef struct {
#if defined (SUN4U)
uint32_t mid; /**< Processor ID as read from
UPA_CONFIG/FIREPLANE_CONFIG. */
ver_reg_t ver;
#include <arch/sun4u/cpu.h>
#elif defined (SUN4V)
uint64_t id; /**< virtual processor ID */
uint32_t mid; // TODO: left here only to keep the code compilable!!!
#include <arch/sun4v/cpu.h>
#endif
uint32_t clock_frequency; /**< Processor frequency in Hz. */
uint64_t next_tick_cmpr; /**< Next clock interrupt should be
generated when the TICK register
matches this value. */
} cpu_arch_t;
 
#endif