Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc note that find_cpus() also sets cpu_arch.



details:   https://anonhg.NetBSD.org/src/rev/ca5d25ea7f0b
branches:  trunk
changeset: 949799:ca5d25ea7f0b
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jan 17 01:04:58 2021 +0000

description:
note that find_cpus() also sets cpu_arch.

diffstat:

 sys/arch/sparc/sparc/autoconf.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r b53170210312 -r ca5d25ea7f0b sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c   Sun Jan 17 01:02:28 2021 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c   Sun Jan 17 01:04:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.262 2021/01/17 01:02:28 mrg Exp $ */
+/*     $NetBSD: autoconf.c,v 1.263 2021/01/17 01:04:58 mrg Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.262 2021/01/17 01:02:28 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.263 2021/01/17 01:04:58 mrg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -198,6 +198,8 @@
 /*
  * Get the number of CPUs in the system and the CPUs' SPARC architecture
  * version. We need this information early in the boot process.
+ *
+ * This also sets cpu_arch to 8 on sun4m and sun4d.
  */
 static int
 find_cpus(void)



Home | Main Index | Thread Index | Old Index