rboot icon indicating copy to clipboard operation
rboot copied to clipboard

Don`t see load EFI Program Data in page_table/map_segment

Open polyproline opened this issue 4 years ago • 1 comments

I don`t see the code use segment.get_data() and write the program data to the virtual address. The code should be writen before compare "mem_size > file_size". Is my fault?

polyproline avatar Mar 19 '21 13:03 polyproline

Good question! The kernel ELF is loaded to the physical memory with page aligned, then the program data in ELF can be directly mapped to the virtual memory without copy.

wangrunji0408 avatar Mar 19 '21 14:03 wangrunji0408