Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/stand/ofwboot Allow ofwboot to read files fr...



details:   https://anonhg.NetBSD.org/src/rev/ce616f15cc2b
branches:  trunk
changeset: 773422:ce616f15cc2b
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Feb 01 21:48:22 2012 +0000

description:
Allow ofwboot to read files from FAT(dosfs).

diffstat:

 sys/arch/macppc/stand/ofwboot/ofdev.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 3e98710bcb55 -r ce616f15cc2b sys/arch/macppc/stand/ofwboot/ofdev.c
--- a/sys/arch/macppc/stand/ofwboot/ofdev.c     Wed Feb 01 21:47:17 2012 +0000
+++ b/sys/arch/macppc/stand/ofwboot/ofdev.c     Wed Feb 01 21:48:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofdev.c,v 1.24 2011/07/07 01:26:55 mrg Exp $   */
+/*     $NetBSD: ofdev.c,v 1.25 2012/02/01 21:48:22 matt Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -48,6 +48,7 @@
 #include <lib/libsa/stand.h>
 #include <lib/libsa/byteorder.h>
 #include <lib/libsa/cd9660.h>
+#include <lib/libsa/dosfs.h>
 #include <lib/libsa/nfs.h>
 #include <lib/libsa/ufs.h>
 #include <lib/libsa/lfs.h>
@@ -122,8 +123,9 @@
 static struct fs_ops file_system_ustarfs = FS_OPS(ustarfs);
 static struct fs_ops file_system_cd9660 = FS_OPS(cd9660);
 static struct fs_ops file_system_nfs = FS_OPS(nfs);
+static struct fs_ops file_system_dosfs = FS_OPS(dosfs);
 
-struct fs_ops file_system[8];
+struct fs_ops file_system[9];
 int nfsys;
 
 static struct of_dev ofdev = {
@@ -473,7 +475,8 @@
                file_system[4] = file_system_ustarfs;
                file_system[5] = file_system_cd9660;
                file_system[6] = file_system_hfs;
-               nfsys = 7;
+               file_system[7] = file_system_dosfs;
+               nfsys = 8;
                return 0;
        }
        if (!strcmp(buf, "network")) {



Home | Main Index | Thread Index | Old Index