Module Name: src Committed By: martin Date: Mon Jun 17 18:05:30 UTC 2024
Modified Files: src/sys/arch/sgimips/sgimips [netbsd-10]: machdep.c Log Message: Pull up following revision(s) (requested by skrll in ticket #695): sys/arch/sgimips/sgimips/machdep.c: revision 1.155 sgimips: call mips_vector_init earlier to fix boot. PR port-sgimips/58269 To generate a diff of this commit: cvs rdiff -u -r1.152 -r1.152.4.1 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.152 src/sys/arch/sgimips/sgimips/machdep.c:1.152.4.1 --- src/sys/arch/sgimips/sgimips/machdep.c:1.152 Thu Aug 12 20:53:18 2021 +++ src/sys/arch/sgimips/sgimips/machdep.c Mon Jun 17 18:05:30 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.152 2021/08/12 20:53:18 andvar Exp $ */ +/* $NetBSD: machdep.c,v 1.152.4.1 2024/06/17 18:05:30 martin Exp $ */ /* * Copyright (c) 2000 Soren S. Jorvang @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.152 2021/08/12 20:53:18 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.152.4.1 2024/06/17 18:05:30 martin Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -286,6 +286,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 */ @@ -662,13 +669,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();