Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/playstation2 integrate BUILTIN_KERNEL_LOADER and KE...



details:   https://anonhg.NetBSD.org/src/rev/160d6a1f2e43
branches:  trunk
changeset: 518020:160d6a1f2e43
user:      uch <uch%NetBSD.org@localhost>
date:      Fri Nov 23 16:08:45 2001 +0000

description:
integrate BUILTIN_KERNEL_LOADER and KERNE_PATH into KLOADER_KERNEL_PATH.

diffstat:

 sys/arch/playstation2/conf/AGATE              |   4 ++--
 sys/arch/playstation2/conf/DEBUG              |   4 ++--
 sys/arch/playstation2/conf/RAMDISK            |   4 ++--
 sys/arch/playstation2/conf/files.playstation2 |   6 +++---
 sys/arch/playstation2/playstation2/machdep.c  |  15 ++++++---------
 5 files changed, 15 insertions(+), 18 deletions(-)

diffs (131 lines):

diff -r 85779d1fb246 -r 160d6a1f2e43 sys/arch/playstation2/conf/AGATE
--- a/sys/arch/playstation2/conf/AGATE  Fri Nov 23 15:48:40 2001 +0000
+++ b/sys/arch/playstation2/conf/AGATE  Fri Nov 23 16:08:45 2001 +0000
@@ -1,7 +1,7 @@
 #
 # -- SCPH-18000 used by uch%netbsd.org@localhost
 #
-#      $NetBSD: AGATE,v 1.2 2001/11/20 12:56:36 lukem Exp $
+#      $NetBSD: AGATE,v 1.3 2001/11/23 16:08:46 uch Exp $
 #
 
 include        "arch/playstation2/conf/std.playstation2"
@@ -12,7 +12,7 @@
 
 makeoptions    DEFGP="-G 40"
 
-options        BUILTIN_KERNEL_LOADER
+options        KLOADER_KERNEL_PATH="\"/netbsd\""
 
 options        DDB                     # in-kernel debugger
 
diff -r 85779d1fb246 -r 160d6a1f2e43 sys/arch/playstation2/conf/DEBUG
--- a/sys/arch/playstation2/conf/DEBUG  Fri Nov 23 15:48:40 2001 +0000
+++ b/sys/arch/playstation2/conf/DEBUG  Fri Nov 23 16:08:45 2001 +0000
@@ -1,7 +1,7 @@
 #
 # kernel config file for debugging.
 #
-#      $NetBSD: DEBUG,v 1.2 2001/11/20 12:56:36 lukem Exp $
+#      $NetBSD: DEBUG,v 1.3 2001/11/23 16:08:46 uch Exp $
 #
 
 include        "arch/playstation2/conf/std.playstation2"
@@ -11,7 +11,7 @@
 
 makeoptions    DEFGP="-G 0"
 
-options        BUILTIN_KERNEL_LOADER, KERNEL_PATH="\"/netbsd\""
+options        KLOADER_KERNEL_PATH="\"/netbsd\""
 options        NMBCLUSTERS=4096 # Max. number of mbuf clusters
 
 options        PPP_BSDCOMP     # BSD-Compress compression support for PPP
diff -r 85779d1fb246 -r 160d6a1f2e43 sys/arch/playstation2/conf/RAMDISK
--- a/sys/arch/playstation2/conf/RAMDISK        Fri Nov 23 15:48:40 2001 +0000
+++ b/sys/arch/playstation2/conf/RAMDISK        Fri Nov 23 16:08:45 2001 +0000
@@ -1,7 +1,7 @@
 #
 # kernel config file for memory(RAM) disk
 #
-#      $NetBSD: RAMDISK,v 1.2 2001/11/20 12:56:36 lukem Exp $
+#      $NetBSD: RAMDISK,v 1.3 2001/11/23 16:08:45 uch Exp $
 #
 
 include        "arch/playstation2/conf/std.playstation2"
@@ -21,4 +21,4 @@
 options        MINIROOTSIZE=10240      # size of memory disk, in blocks
 
 # Reboot from HDD
-options        BUILTIN_KERNEL_LOADER, KERNEL_PATH="\"/mnt/netbsd\""
+options        KLOADER_KERNEL_PATH="\"/mnt/netbsd\""
diff -r 85779d1fb246 -r 160d6a1f2e43 sys/arch/playstation2/conf/files.playstation2
--- a/sys/arch/playstation2/conf/files.playstation2     Fri Nov 23 15:48:40 2001 +0000
+++ b/sys/arch/playstation2/conf/files.playstation2     Fri Nov 23 16:08:45 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.playstation2,v 1.3 2001/11/20 14:34:24 lukem Exp $
+#      $NetBSD: files.playstation2,v 1.4 2001/11/23 16:08:45 uch Exp $
 
 maxpartitions 8
 
@@ -27,8 +27,8 @@
 file arch/playstation2/playstation2/machdep.c
 file arch/playstation2/playstation2/procfs_machdep.c   procfs
 file arch/playstation2/playstation2/sifbios.c
-defparam opt_builtin_kernel_loader.h   KERNEL_PATH BUILTIN_KERNEL_LOADER
-file arch/playstation2/playstation2/kloader.c          builtin_kernel_loader
+defparam opt_kloader_kernel_path.h     KLOADER_KERNEL_PATH
+file arch/playstation2/playstation2/kloader.c          kloader_kernel_path
 
 file   dev/clock_subr.c
 #
diff -r 85779d1fb246 -r 160d6a1f2e43 sys/arch/playstation2/playstation2/machdep.c
--- a/sys/arch/playstation2/playstation2/machdep.c      Fri Nov 23 15:48:40 2001 +0000
+++ b/sys/arch/playstation2/playstation2/machdep.c      Fri Nov 23 16:08:45 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.1 2001/10/16 15:38:55 uch Exp $  */
+/*     $NetBSD: machdep.c,v 1.2 2001/11/23 16:08:45 uch Exp $  */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include "opt_ddb.h"
-#include "opt_builtin_kernel_loader.h"
+#include "opt_kloader_kernel_path.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -64,11 +64,8 @@
 #include <machine/intr.h>/* hardintr_init */
 #include <playstation2/playstation2/sifbios.h>
 #include <playstation2/playstation2/interrupt.h>
-#ifdef BUILTIN_KERNEL_LOADER
+#ifdef KLOADER_KERNEL_PATH
 #include <playstation2/playstation2/kloader.h>
-#ifndef KERNEL_PATH
-#define KERNEL_PATH    "/netbsd"
-#endif
 #endif
 
 /* For sysctl. */
@@ -313,8 +310,8 @@
        if (boothowto & RB_HALT) {
                howto |= RB_HALT;
        } else {
-#ifdef BUILTIN_KERNEL_LOADER           
-               kloader_reboot_setup(KERNEL_PATH);
+#ifdef KLOADER_KERNEL_PATH
+               kloader_reboot_setup(KLOADER_KERNEL_PATH);
 #endif
        }
 
@@ -343,7 +340,7 @@
        else if (howto & RB_HALT)
                sifbios_halt(1); /* halt */
        else {
-#ifdef BUILTIN_KERNEL_LOADER
+#ifdef KLOADER_KERNEL_PATH
                kloader_reboot();
                /* NOTREACHED */
 #endif



Home | Main Index | Thread Index | Old Index