Module Name: src
Committed By: matt
Date: Wed Feb 1 21:48:22 UTC 2012
Modified Files:
src/sys/arch/macppc/stand/ofwboot: ofdev.c
Log Message:
Allow ofwboot to read files from FAT(dosfs).
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/macppc/stand/ofwboot/ofdev.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/macppc/stand/ofwboot/ofdev.c
diff -u src/sys/arch/macppc/stand/ofwboot/ofdev.c:1.24 src/sys/arch/macppc/stand/ofwboot/ofdev.c:1.25
--- src/sys/arch/macppc/stand/ofwboot/ofdev.c:1.24 Thu Jul 7 01:26:55 2011
+++ src/sys/arch/macppc/stand/ofwboot/ofdev.c Wed Feb 1 21:48:22 2012
@@ -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_hfs = F
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 @@ devopen(struct open_file *of, const char
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")) {