]> Zhao Yanbai Git Server - minix.git/commitdiff
kernel: keep serial info in system env
authorBen Gras <ben@minix3.org>
Wed, 18 Jul 2012 13:16:57 +0000 (15:16 +0200)
committerBen Gras <ben@minix3.org>
Wed, 18 Jul 2012 13:16:57 +0000 (15:16 +0200)
. otherwise serial hardware gets reinitialized by tty

kernel/arch/i386/pre_init.c

index 66e63efe09317288be8c9e68d26e0fc6b899c282..6dcb7763edccfefec2b87afa875b5896a10ceb06 100644 (file)
@@ -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) {