From: Ben Gras Date: Wed, 18 Jul 2012 13:16:57 +0000 (+0200) Subject: kernel: keep serial info in system env X-Git-Tag: v3.2.1~446 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.3.html?a=commitdiff_plain;h=49d411610056f3e31248c7cdd55fc00f55d3571f;p=minix.git kernel: keep serial info in system env . otherwise serial hardware gets reinitialized by tty --- diff --git a/kernel/arch/i386/pre_init.c b/kernel/arch/i386/pre_init.c index 66e63efe0..6dcb7763e 100644 --- a/kernel/arch/i386/pre_init.c +++ b/kernel/arch/i386/pre_init.c @@ -49,8 +49,8 @@ static int mb_set_param(char *bigbuf, char *name, char *value, kinfo_t *cbi) int valuelen = strlen(value); /* Some variables we recognize */ - if(!strcmp(name, SERVARNAME)) { cbi->do_serial_debug = 1; return 0; } - if(!strcmp(name, SERBAUDVARNAME)) { cbi->serial_debug_baud = atoi(value); return 0; } + if(!strcmp(name, SERVARNAME)) { cbi->do_serial_debug = 1; } + if(!strcmp(name, SERBAUDVARNAME)) { cbi->serial_debug_baud = atoi(value); } /* Delete the item if already exists */ while (*p) {