search for: multiboot_header

Displaying 4 results from an estimated 4 matches for "multiboot_header".

2010 Dec 21
2
[PATCH] chain.c32: support chainloading GRUB2 core.img
...= data[ndata].data; + /* 0x25c - 0x267: Multiboot header */ + struct { + /* 0x25c - 0x25f: magic number = 0x1badb002 */ + uint32_t magic; + /* 0x260 - 0x263: flags */ + uint32_t flags; + /* 0x264 - 0x267: checksum */ + uint32_t checksum; + } __attribute__ ((packed)) multiboot_header; + } __attribute__ ((packed)) *grub2_core_img; - /* - * Check the compatibility version number to see if we loaded a real - * stage2 file or a stage2 file that we support. - */ - if (stage2->compat_version_major != 3 - || stage2->compat_version_minor != 2) { +...
2015 Oct 10
3
[PATCH] Extend Multiboot1 with support for ELF64 file format
This patch is just a (shameless) copy from bug #28 [1]. The original patch has been sitting there for a couple of years now, and it was based on Syslinux v 4.05. The patch I am posting here is just a re-base on v.6.03. Whichever inadequate formatting (tabs, trailing spaces...), or any kind of correction that was required for the original patch to be accepted, is probably still required now.
2015 Oct 10
2
[PATCH 2/2] com32/mboot/map.c: removed trailing spaces
....nl> They were introduced by the patch for ELF64 support. --- com32/mboot/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com32/mboot/map.c b/com32/mboot/map.c index 2e8641f..1992f14 100644 --- a/com32/mboot/map.c +++ b/com32/mboot/map.c @@ -281,7 +281,7 @@ struct multiboot_header *map_image(void *ptr, size_t len) sh[i].sh_addr = addr; } } - } else if (eh64 && !(opt.aout && mbh_len && + } else if (eh64 && !(opt.aout && mbh_len && (mbh->flags & MULTIBOOT_AOUT_KLUDGE))) { /* Load 64-bit ELF *...
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...ate *L) } - return 1; + rv = 1; +out: + lfree(mi); + lfree(gi); + return rv; } diff --git a/com32/mboot/initvesa.c b/com32/mboot/initvesa.c index bb3a846..bd869e3 100644 --- a/com32/mboot/initvesa.c +++ b/com32/mboot/initvesa.c @@ -62,9 +62,13 @@ void set_graphics_mode(const struct multiboot_header *mbh, if (!(mbh->flags & MULTIBOOT_VIDEO_MODE) || mbh->mode_type != 0) return; - /* Allocate space in the bounce buffer for these structures */ - gi = &((struct vesa_info *)__com32.cs_bounce)->gi; - mi = &((struct vesa_info *)__com32.cs_bounce)->mi; + gi...