aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-07-07 10:08:58 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-07-08 15:54:12 +0100
commit8c973d53817749fdeb10305242c75ffe2d72b385 (patch)
tree8dc696e0f3d6cb7514fc5b0f78bfb1fc20be5d75
parent40c372f93642eacc82d5a3c35ee363bcf0000137 (diff)
downloadsyslinux-8c973d53817749fdeb10305242c75ffe2d72b385.tar.gz
syslinux-8c973d53817749fdeb10305242c75ffe2d72b385.tar.xz
syslinux-8c973d53817749fdeb10305242c75ffe2d72b385.zip
efi: update the correct linux_header pointer for cmdline
We're updating the cmd_line_ptr field of the wrong linux_header, so the command line isn't being passed to the kernel. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--efi/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/efi/main.c b/efi/main.c
index cdd993d8..19ab76a9 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -1089,7 +1089,7 @@ int efi_boot_linux(void *kernel_buf, size_t kernel_size,
if (!_cmdline)
goto bail;
- hdr->cmd_line_ptr = (UINT32)(UINTN)_cmdline;
+ bhdr->cmd_line_ptr = (UINT32)(UINTN)_cmdline;
memset((char *)&bp->screen_info, 0x0, sizeof(bp->screen_info));