Module Name: src
Committed By: scole
Date: Sat Apr 8 17:40:50 UTC 2017
Modified Files:
src/sys/arch/ia64/ia64: cpu.c
Log Message:
Add more cpus to identify, from FreeBSD
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/ia64/ia64/cpu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/ia64/ia64/cpu.c
diff -u src/sys/arch/ia64/ia64/cpu.c:1.14 src/sys/arch/ia64/ia64/cpu.c:1.15
--- src/sys/arch/ia64/ia64/cpu.c:1.14 Thu Apr 3 17:04:46 2014
+++ src/sys/arch/ia64/ia64/cpu.c Sat Apr 8 17:40:50 2017
@@ -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
#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);