Add cttybaud boot monitor variable to control speed of serial console (combine with ctty 0)

This commit is contained in:
Erik van der Kouwe
2011-03-16 12:25:10 +00:00
parent 5f1ab506c8
commit 03a7d0e8ae
5 changed files with 70 additions and 10 deletions

View File

@@ -83,10 +83,16 @@ PUBLIC void cstart(
system_hz = atoi(value);
if(!value || system_hz < 2 || system_hz > 50000) /* sanity check */
system_hz = DEFAULT_HZ;
/* Intitialize serial debugging */
value = env_get(SERVARNAME);
if(value && atoi(value) == 0)
if(value && atoi(value) == 0) {
do_serial_debug=1;
value = env_get(SERBAUDVARNAME);
if (value) serial_debug_baud = atoi(value);
}
#ifdef CONFIG_APIC
value = env_get("no_apic");
if(value)