Subversion Repositories HelenOS

Rev

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

Rev 2329 Rev 2357
Line 28... Line 28...
28
 
28
 
29
/** @addtogroup arm32
29
/** @addtogroup arm32
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
-
 
33
 *  @brief CPU identification.
33
 */
34
 */
34
 
35
 
35
#include <arch/cpu.h>
36
#include <arch/cpu.h>
36
#include <cpu.h>
37
#include <cpu.h>
37
#include <arch.h>
38
#include <arch.h>
Line 91... Line 92...
91
    cpu->prim_part_num = (ident << 16) >> 20;
92
    cpu->prim_part_num = (ident << 16) >> 20;
92
    cpu->rev_num = (ident << 28) >> 28;
93
    cpu->rev_num = (ident << 28) >> 28;
93
}
94
}
94
 
95
 
95
 
96
 
-
 
97
/** Does nothing on ARM. */
96
void cpu_arch_init(void)
98
void cpu_arch_init(void)
97
{
99
{
98
}
100
}
99
 
101
 
100
 
102
 
-
 
103
/** Retrieves processor identification and stores it to #CPU.arch */
101
void cpu_identify(void)
104
void cpu_identify(void)
102
{
105
{
103
    arch_cpu_identify(&CPU->arch);
106
    arch_cpu_identify(&CPU->arch);
104
}
107
}
105
 
108
 
106
 
109
 
-
 
110
/** Prints CPU identification. */
107
void cpu_print_report(cpu_t *m)
111
void cpu_print_report(cpu_t *m)
108
{
112
{
109
    char * vendor = imp_data[0];
113
    char * vendor = imp_data[0];
110
    char * architecture = arch_data[0];
114
    char * architecture = arch_data[0];
111
    cpu_arch_t * cpu_arch = &m->arch;
115
    cpu_arch_t * cpu_arch = &m->arch;