From 24f98ba895aea10877af582ea066b6b00338ae56 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 8 Feb 1994 21:16:51 +0000 Subject: Formerly boot-parse.c.~2~ --- libdiskfs/boot-parse.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 +#include +#include +#include + /* 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; } -- cgit v1.2.3