Add more cpus to identify, from FreeBSD
This commit is contained in:
parent
4fc4ed6792
commit
b727c8a444
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cpu.c,v 1.14 2014/04/03 17:04:46 martin Exp $ */
|
||||
/* $NetBSD: cpu.c,v 1.15 2017/04/08 17:40:50 scole Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.14 2014/04/03 17:04:46 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.15 2017/04/08 17:40:50 scole Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/cpu.h>
|
||||
|
@ -45,6 +45,8 @@ __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.14 2014/04/03 17:04:46 martin Exp $");
|
|||
#define MHz 1000000L
|
||||
#define GHz (1000L * MHz)
|
||||
|
||||
extern int ia64_sync_icache_needed;
|
||||
|
||||
struct cpu_info cpu_info_primary __aligned(CACHE_LINE_SIZE);
|
||||
struct cpu_info *cpu_info_list = &cpu_info_primary;
|
||||
|
||||
|
@ -165,6 +167,19 @@ identifycpu(struct cpu_softc *sc)
|
|||
break;
|
||||
}
|
||||
break;
|
||||
case 0x20:
|
||||
ia64_sync_icache_needed = 1;
|
||||
|
||||
family_name = "Itanium 2";
|
||||
switch (model) {
|
||||
case 0x00:
|
||||
model_name = "Montecito";
|
||||
break;
|
||||
case 0x01:
|
||||
model_name = "Montvale";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
cpu_setmodel("%s", model_name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue