Subversion Repositories HelenOS-historic

Rev

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

Rev 534 Rev 860
Line 25... Line 25...
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#include <arch/cpu.h>
29
#include <arch/cpu.h>
-
 
30
#include <arch/cpuid.h>
30
#include <cpu.h>
31
#include <cpu.h>
31
 
32
 
32
#include <arch.h>
33
#include <arch.h>
33
 
34
 
34
#include <typedefs.h>
35
#include <typedefs.h>
Line 38... Line 39...
38
{
39
{
39
}
40
}
40
 
41
 
41
void cpu_identify(void)
42
void cpu_identify(void)
42
{
43
{
-
 
44
    cpu_info_t info;
-
 
45
   
-
 
46
    cpu_version(&info);
-
 
47
    CPU->arch.version = info.version;
-
 
48
    CPU->arch.revision = info.revision;
43
}
49
}
44
 
50
 
45
void cpu_print_report(cpu_t *m)
51
void cpu_print_report(cpu_t *m)
46
{
52
{
47
    printf("cpu%d:\n", m->id);
53
    printf("cpu%d: version=%d, revision=%d\n", m->id, m->arch.version, m->arch.revision);
48
}
54
}