提交 9437454a 编写于 作者: B blueswir1

Fix loading above 4G


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3230 c046a42c-6fe2-441c-8c8c-71466251a162
上级 7743e588
...@@ -145,8 +145,8 @@ int glue(load_elf, SZ)(int fd, int64_t virt_to_phys_addend, ...@@ -145,8 +145,8 @@ int glue(load_elf, SZ)(int fd, int64_t virt_to_phys_addend,
struct elfhdr ehdr; struct elfhdr ehdr;
struct elf_phdr *phdr = NULL, *ph; struct elf_phdr *phdr = NULL, *ph;
int size, i, total_size; int size, i, total_size;
elf_word low = 0, high = 0; elf_word mem_size;
elf_word mem_size, addr; target_phys_addr_t addr, low = 0, high = 0;
uint8_t *data = NULL; uint8_t *data = NULL;
if (read(fd, &ehdr, sizeof(ehdr)) != sizeof(ehdr)) if (read(fd, &ehdr, sizeof(ehdr)) != sizeof(ehdr))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册