Displaying 2 results from an estimated 2 matches for "run_addr".
Did you mean:
in_addr
2008 Oct 20
0
PATCH[001/001]: mboot.c: prefer ELF header over multiboot header
...ltiboot header */
-#ifdef DEBUG
- printf("Using multiboot header.\n");
-#endif
-
- /* Where is the code in the loaded file? */
- seg_addr = ((char *)mbh) - (mbh->header_addr - mbh->load_addr);
-
- /* How much code is there? */
- run_addr = mbh->load_addr;
- 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->b...
2009 Apr 03
0
PATCH: Handle virtual entry point in mboot.c32
...&&
+ (ehdr->e_entry < (phdr[i].p_vaddr + run_size))
+ ) {
+ realEntry = (ehdr->e_entry + phdr[i].p_paddr) -
phdr[i].p_vaddr;
+ }
+
/* Place the segment where it wants to be */
run_addr = phdr[i].p_paddr;
place_kernel_section(run_addr, run_size);
@@ -753,7 +771,7 @@ static size_t load_kernel(struct multibo
}
/* Done! */
- return ehdr->e_entry;
+ return realEntry;
}
}