Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/ia64/ia64 Add more cpus to identify, from FreeBSD



details:   https://anonhg.NetBSD.org/src/rev/803eac132c32
branches:  trunk
changeset: 352555:803eac132c32
user:      scole <scole%NetBSD.org@localhost>
date:      Sat Apr 08 17:40:50 2017 +0000

description:
Add more cpus to identify, from FreeBSD

diffstat:

 sys/arch/ia64/ia64/cpu.c |  19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 0addcbbdf83b -r 803eac132c32 sys/arch/ia64/ia64/cpu.c
--- a/sys/arch/ia64/ia64/cpu.c  Sat Apr 08 17:38:43 2017 +0000
+++ b/sys/arch/ia64/ia64/cpu.c  Sat Apr 08 17:40:50 2017 +0000
@@ -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 @@
 #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 @@
                        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);
 



Home | Main Index | Thread Index | Old Index