commit | fe0e8edbee4406cfd0c348bb98ee452ecc7ac4d3 | [log] [tgz] |
---|---|---|
author | Alek Du <alek.du@intel.com> | Tue May 13 17:27:32 2008 +0800 |
committer | Patrick Tjin <pattjin@google.com> | Mon Jul 21 20:22:36 2014 -0700 |
tree | ad041b1c1cb26b5dabd198ede03df18928e43b61 | |
parent | 2c4ebecb2259bd402293baa6751c0dde292a55fd [diff] [blame] |
* Fill more setup_header items
diff --git a/bootstub.c b/bootstub.c index ad7bd7b..6f894d3 100644 --- a/bootstub.c +++ b/bootstub.c
@@ -57,6 +57,9 @@ memset(bp, 0, sizeof (struct boot_params)); memcpy(&bp->hdr, sh, sizeof (struct setup_header)); bp->hdr.cmd_line_ptr = CMDLINE_OFFSET; + bp->hdr.cmdline_size = *(u32*)CMDLINE_SIZE; + bp->hdr.ramdisk_size = *(u32*)INITRD_SIZE; + bp->hdr.ramdisk_image = *(u32*)INITRD_OFFSET + CMDLINE_OFFSET; } static int get_32bit_entry(unsigned char *ptr)