[syslinux:elflink] elflink: will run default item in config file after starting ui
syslinux-bot for Feng Tang
feng.tang at intel.com
Thu Aug 12 21:03:37 PDT 2010
Commit-ID: 4b0e99d36684588d564cf0fec66f648ffc9ebb76
Gitweb: http://syslinux.zytor.com/commit/4b0e99d36684588d564cf0fec66f648ffc9ebb76
Author: Feng Tang <feng.tang at intel.com>
AuthorDate: Wed, 30 Jun 2010 16:12:04 +0800
Committer: Feng Tang <feng.tang at intel.com>
CommitDate: Tue, 20 Jul 2010 11:10:04 +0800
elflink: will run default item in config file after starting ui
---
core/elflink/cli.c | 6 ++----
core/elflink/execute.c | 3 ++-
core/elflink/load_env32.c | 2 +-
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/core/elflink/cli.c b/core/elflink/cli.c
index db2c775..f029ae4 100644
--- a/core/elflink/cli.c
+++ b/core/elflink/cli.c
@@ -360,19 +360,17 @@ void process_command(const char *cmd)
printf("\n");
return;
}
+ printf("\n");
+ mp("raw cmd = %s", cmd);
strcpy(temp_cmd, cmd);
module_name = strtok(cmd, COMMAND_DELIM);
len_mn = strlen(module_name);
- printf("\n");
- mp("enter, cmd = %s, module_name = %s",cmd, module_name);
-
if (!strcmp(module_name + len_mn - 4, ".c32")) {
if (module_find(module_name) != NULL) {
/* make module re-enterable */
mp("Module %s is already running");
- //goto cleanup;
}
do {
argv[0] = module_name;
diff --git a/core/elflink/execute.c b/core/elflink/execute.c
index 08946aa..29e9933 100644
--- a/core/elflink/execute.c
+++ b/core/elflink/execute.c
@@ -21,7 +21,6 @@ void execute(const char *cmdline, enum kernel_type type)
{
com32sys_t ireg;
const char *p, *const *pp;
- //char *q = __com32.cs_bounce;
char *q;
const char *kernel, *args;
@@ -30,6 +29,8 @@ void execute(const char *cmdline, enum kernel_type type)
memset(&ireg, 0, sizeof ireg);
+ /* for parameter will be passed to __intcall, we need use
+ * lmalloc a block of low memory */
q = lmalloc(128);
if (!q) {
printf("%s(): Fail to lmalloc a buffer to exec %s\n",
diff --git a/core/elflink/load_env32.c b/core/elflink/load_env32.c
index 663c82e..b153281 100644
--- a/core/elflink/load_env32.c
+++ b/core/elflink/load_env32.c
@@ -97,6 +97,7 @@ void start_ui(char *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 == '.') {
@@ -104,7 +105,6 @@ void start_ui(char *config_file)
}
process_command(cmdline);
}
- */
/* try to run a default linux kernel */
/*
More information about the Syslinux-commits
mailing list