Displaying 2 results from an estimated 2 matches for "map_high".
Did you mean:
kmap_high
2015 Oct 10
3
[PATCH] Extend Multiboot1 with support for ELF64 file format
...4 = (Elf64_Shdr *) ((char *)eh64 + eh64->e_shoff);
+
+ len = eh64->e_shentsize * eh64->e_shnum;
+ /*
+ * Align this, but don't pad -- in general this means a bunch of
+ * smaller sections gets packed into a single page.
+ */
+ addr = map_data(sh64, len, 4096, MAP_HIGH | MAP_NOPAD);
+ if (!addr) {
+ error("Failed to map symbol table\n");
+ return NULL;
+ }
+
+ mbinfo.flags |= MB_INFO_ELF_SHDR;
+ mbinfo.syms.e.addr = addr;
+ mbinfo.syms.e.num = eh64->e_shnum;
+ mbinfo.syms.e.size = eh64->e_shentsize;
+ mbinfo.syms.e.sh...
2015 Oct 10
2
[PATCH 2/2] com32/mboot/map.c: removed trailing spaces
...ot_header *map_image(void *ptr, size_t len)
continue; /* SHF_ALLOC sections should have PHDRs */
align = sh64[i].sh_addralign ? sh64[i].sh_addralign : 0;
- addr = map_data((char *)ptr + sh64[i].sh_offset,
+ addr = map_data((char *)ptr + sh64[i].sh_offset,
sh64[i].sh_size, align, MAP_HIGH);
if (!addr) {
error("Failed to map symbol section\n");
--
2.0.0