[syslinux:elflink] PXELINUX: call open_config() function before loading 32-bit environment

syslinux-bot for Paulo Alcantara pcacjr at zytor.com
Thu Apr 12 07:45:06 PDT 2012


Commit-ID:  b0098b1dc0fde65e46a673656e97b18fbdfefc3b
Gitweb:     http://www.syslinux.org/commit/b0098b1dc0fde65e46a673656e97b18fbdfefc3b
Author:     Paulo Alcantara <pcacjr at zytor.com>
AuthorDate: Wed, 11 Apr 2012 19:24:19 -0300
Committer:  Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Wed, 11 Apr 2012 19:24:19 -0300

PXELINUX: call open_config() function before loading 32-bit environment

ldlinux.c32 needs ConfigName variable to be set before jumping to 32-bit
ELF space. As pxe_open_config() is called from open_config() in
core/pxelinux.asm, it will set ConfigName variable accordingly.

Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>

---
 core/pxelinux.asm |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/core/pxelinux.asm b/core/pxelinux.asm
index 0a62bd7..38e1319 100644
--- a/core/pxelinux.asm
+++ b/core/pxelinux.asm
@@ -264,6 +264,16 @@ ROOT_FS_OPS:
 %endmacro
 
 ;
+; Open configuration file. ldlinux.c32 needs ConfigName to be set - so we need
+; to call open_config() before loading it.
+;
+; Note: We don't need to check return value of open_config() function. It will
+; call kaboom() on failure.
+;
+		extern open_config
+		pm_call open_config
+
+;
 ; Jump to 32-bit ELF space
 ;
 		pm_call load_env32


More information about the Syslinux-commits mailing list