Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/obs405 Reorder things in cpu_startup() for c...



details:   https://anonhg.NetBSD.org/src/rev/fff31a5e1658
branches:  trunk
changeset: 960034:fff31a5e1658
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Mar 06 08:29:19 2021 +0000

description:
Reorder things in cpu_startup() for clarity.

No functional changes intended.

diffstat:

 sys/arch/evbppc/obs405/obs600_machdep.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 0100ac930b4c -r fff31a5e1658 sys/arch/evbppc/obs405/obs600_machdep.c
--- a/sys/arch/evbppc/obs405/obs600_machdep.c   Sat Mar 06 08:08:19 2021 +0000
+++ b/sys/arch/evbppc/obs405/obs600_machdep.c   Sat Mar 06 08:29:19 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obs600_machdep.c,v 1.11 2021/03/02 07:27:24 rin Exp $  */
+/*     $NetBSD: obs600_machdep.c,v 1.12 2021/03/06 08:29:19 rin Exp $  */
 /*     Original: md_machdep.c,v 1.3 2005/01/24 18:47:37 shige Exp $    */
 
 /*
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obs600_machdep.c,v 1.11 2021/03/02 07:27:24 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obs600_machdep.c,v 1.12 2021/03/06 08:29:19 rin Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_ddb.h"
@@ -206,11 +206,6 @@
         */
        board_info_init();
 
-       /*
-        * Now that we have VM, malloc()s are OK in bus_space.
-        */
-       bus_space_mallocok();
-
        pn = prop_number_create_integer(OBS600_CPU_FREQ);
        KASSERT(pn != NULL);
        if (prop_dictionary_set(board_properties, "processor-frequency", pn) ==
@@ -258,6 +253,11 @@
        prop_object_release(pn);
 
        /*
+        * Now that we have VM, malloc()s are OK in bus_space.
+        */
+       bus_space_mallocok();
+
+       /*
         * no fake mapiodev
         */
        fake_mapiodev = 0;



Home | Main Index | Thread Index | Old Index