]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[MIPS] vpe: Use p_paddr instead of p_vaddr loader.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 24 Oct 2007 14:54:32 +0000 (15:54 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 29 Oct 2007 19:35:33 +0000 (19:35 +0000)
This subtle difference makes ELF overlays work.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vpe.c

index df8cbe4c7c0d43c22f89a3f19ff797a6296ebfc0..436a64ff3989485feebd20b388212b832738f37f 100644 (file)
@@ -942,8 +942,8 @@ static int vpe_elfload(struct vpe * v)
                        if (phdr->p_type != PT_LOAD)
                                continue;
 
-                       memcpy((void *)phdr->p_vaddr, (char *)hdr + phdr->p_offset, phdr->p_filesz);
-                       memset((void *)phdr->p_vaddr + phdr->p_filesz, 0, phdr->p_memsz - phdr->p_filesz);
+                       memcpy((void *)phdr->p_paddr, (char *)hdr + phdr->p_offset, phdr->p_filesz);
+                       memset((void *)phdr->p_paddr + phdr->p_filesz, 0, phdr->p_memsz - phdr->p_filesz);
                        phdr++;
                }