Displaying 2 results from an estimated 2 matches for "run_siz".
Did you mean:
run_size
2008 Oct 20
0
PATCH[001/001]: mboot.c: prefer ELF header over multiboot header
...if (mbh->load_end_addr != 0)
- seg_size = mbh->load_end_addr - mbh->load_addr;
- else
- seg_size = load_size - (seg_addr - load_addr);
-
- /* How much memory will it take up? */
- if (mbh->bss_end_addr != 0)
- run_size = mbh->bss_end_addr - mbh->load_addr;
- else
- run_size = seg_size;
-
- if (seg_size > run_size) {
- printf("Fatal: can't put %i bytes of kernel into %i bytes "
- "of memory.\n", seg_size, ru...
2009 Apr 03
0
PATCH: Handle virtual entry point in mboot.c32
...handling. */
+ Elf32_Addr realEntry = ehdr->e_entry;
+
#ifdef DEBUG
printf("Using ELF header.\n");
#endif
@@ -682,6 +689,17 @@ static size_t load_kernel(struct multibo
/* Skip segments that don't take up any memory */
if (run_size == 0) continue;
+ /* If the entry point is within this program header, set
the real
+ * entry point to the correct physical address. See GRUB's
stage2
+ * (line 620) for a similar calculation. */
+ if(
+ (ehdr-&...