Changes in kernel/generic/src/mm/backend_elf.c [98000fb:137691a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/backend_elf.c
r98000fb r137691a 232 232 void elf_frame_free(as_area_t *area, uintptr_t page, uintptr_t frame) 233 233 { 234 elf_header_t *elf = area->backend_data.elf;235 234 elf_segment_header_t *entry = area->backend_data.segment; 236 uintptr_t base, start_anon; 237 size_t i; 235 uintptr_t start_anon; 238 236 239 237 ASSERT((page >= ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)) && 240 238 (page < entry->p_vaddr + entry->p_memsz)); 241 i = (page - ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)) >> PAGE_WIDTH;242 base = (uintptr_t) (((void *) elf) +243 ALIGN_DOWN(entry->p_offset, FRAME_SIZE));244 239 start_anon = entry->p_vaddr + entry->p_filesz; 245 240 … … 257 252 * lower part is backed by the ELF image and the upper is 258 253 * anonymous). In any case, a frame needs to be freed. 259 */ 254 */ 260 255 frame_free(frame); 261 256 }
Note:
See TracChangeset
for help on using the changeset viewer.