elflink: small modification
authorFeng Tang <feng.tang@intel.com>
Mon, 12 Jul 2010 06:45:25 +0000 (14:45 +0800)
committerFeng Tang <feng.tang@intel.com>
Tue, 20 Jul 2010 03:10:04 +0000 (11:10 +0800)
core/elflink/kernel.c
core/elflink/load_env32.c

index f8efa16..2e63df6 100644 (file)
@@ -22,12 +22,6 @@ int new_linux_kernel(char *okernel, char *ocmdline)
        char cmdline_buf[256], *cmdline;
        int i;
 
-       /* to make malloc works for code in com32/lib */
-       /*
-       openconsole(&dev_null_r, &dev_stdcon_w);
-       init_memory_arena();
-       */
-
        mp("okernel = %s, ocmdline = %s", okernel, ocmdline);
 
        cmdline = cmdline_buf;
index b153281..8d0a557 100644 (file)
@@ -95,9 +95,8 @@ void start_ui(char *config_file)
        mp("enter, config file = %s", config_file);
 
        parse_configs(argv);
+
        /* run the default menu if found */
-       /*
-       */
        if (default_menu) {
                cmdline = default_menu->menu_entries[default_menu->defentry]->cmdline;
                if (*cmdline == '.') {
@@ -106,12 +105,6 @@ void start_ui(char *config_file)
                process_command(cmdline);
        }
 
-       /* try to run a default linux kernel */
-       /*
-       if (append || globaldefault)
-               new_linux_kernel(NULL, NULL);
-       */
-
        /* Should never return */
        enter_cmdline();
 }