Module Name: src
Committed By: skrll
Date: Thu May 23 06:11:14 UTC 2024
Modified Files:
src/sys/arch/sgimips/sgimips: machdep.c
Log Message:
sgimips: call mips_vector_init earlier to fix boot.
PR port-sgimips/58269
To generate a diff of this commit:
cvs rdiff -u -r1.154 -r1.155 src/sys/arch/sgimips/sgimips/machdep.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/sgimips/sgimips/machdep.c
diff -u src/sys/arch/sgimips/sgimips/machdep.c:1.154 src/sys/arch/sgimips/sgimips/machdep.c:1.155
--- src/sys/arch/sgimips/sgimips/machdep.c:1.154 Tue Mar 5 14:15:35 2024
+++ src/sys/arch/sgimips/sgimips/machdep.c Thu May 23 06:11:14 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.154 2024/03/05 14:15:35 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.155 2024/05/23 06:11:14 skrll Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.154 2024/03/05 14:15:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.155 2024/05/23 06:11:14 skrll Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -285,6 +285,13 @@ mach_init(int argc, int32_t argv32[], ui
cpu_setmodel("%s", arcbios_system_identifier);
+ /*
+ * Copy exception-dispatch code down to exception vector.
+ * Initialize locore-function vector.
+ * Clear out the I and D caches.
+ */
+ mips_vector_init(NULL, false);
+
uvm_md_init();
/* set up bootinfo structures */
@@ -661,13 +668,6 @@ mach_init(int argc, int32_t argv32[], ui
arcbios_tree_walk(sgimips_count_cpus, NULL);
/*
- * Copy exception-dispatch code down to exception vector.
- * Initialize locore-function vector.
- * Clear out the I and D caches.
- */
- mips_vector_init(NULL, false);
-
- /*
* Initialize error message buffer (at end of core).
*/
mips_init_msgbuf();