* grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial

parameters.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-29 22:51:12 +02:00
parent 44a1b4327a
commit d33613fcf3
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
parameters.
2010-09-29 Vladimir Serbinenko <phcoder@gmail.com> 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as

View file

@ -1559,6 +1559,9 @@ grub_cmd_netbsd (grub_extcmd_context_t ctxt, int argc, char *argv[])
grub_memset (&serial, 0, sizeof (serial)); grub_memset (&serial, 0, sizeof (serial));
grub_strcpy (serial.devname, "com"); grub_strcpy (serial.devname, "com");
serial.addr = grub_ns8250_hw_get_port (0);
serial.speed = 9600;
if (ctxt->state[NETBSD_SERIAL_ARG].arg) if (ctxt->state[NETBSD_SERIAL_ARG].arg)
{ {
ptr = ctxt->state[NETBSD_SERIAL_ARG].arg; ptr = ctxt->state[NETBSD_SERIAL_ARG].arg;
@ -1581,7 +1584,7 @@ grub_cmd_netbsd (grub_extcmd_context_t ctxt, int argc, char *argv[])
return grub_errno; return grub_errno;
} }
} }
grub_bsd_add_meta (NETBSD_BTINFO_CONSOLE, &serial, sizeof (serial)); grub_bsd_add_meta (NETBSD_BTINFO_CONSOLE, &serial, sizeof (serial));
} }
else else