summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-08 21:16:51 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-08 21:16:51 +0000
commit24f98ba895aea10877af582ea066b6b00338ae56 (patch)
tree89394426289089a07cf974a60a405c9984d098ed /libdiskfs
parent27828b8b3c3950ca8689b3ed08d21238b313dac9 (diff)
Formerly boot-parse.c.~2~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/boot-parse.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libdiskfs/boot-parse.c b/libdiskfs/boot-parse.c
index 342e9486..6098f19f 100644
--- a/libdiskfs/boot-parse.c
+++ b/libdiskfs/boot-parse.c
@@ -19,6 +19,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Written by Michael I. Bushnell. */
+#include "priv.h"
+#include <stdio.h>
+#include <device/device.h>
+#include <string.h>
+#include <sys/reboot.h>
+
/* Call this if the bootstrap port is null and you want to support
being a bootstrap filesystem. ARGC and ARGV should be as passed
to main. If the arguments are not in the proper format, an
@@ -44,7 +50,7 @@ diskfs_parse_bootargs (int argc, char **argv)
diskfs_master_device = atoi (argv[3]);
devname = argv[4];
- (void) device_open (master_device_port, D_WRITE, "console", &con);
+ (void) device_open (diskfs_master_device, D_WRITE, "console", &con);
stderr = stdout = mach_open_devstream (con, "w");
stdin = mach_open_devstream (con, "r");
@@ -79,6 +85,8 @@ diskfs_parse_bootargs (int argc, char **argv)
devname = tmp;
}
+ diskfs_bootflagarg = argv[1];
+
return devname;
}