]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
MIPS: MT: Fix 32-bit dependencies.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 8 Dec 2005 00:32:23 +0000 (00:32 +0000)
committer <ralf@denk.linux-mips.net> <>
Tue, 10 Jan 2006 13:39:06 +0000 (13:39 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vpe.c

index 9c89eebc356febd946fc44c8dc3f5d41eed8d8d2..ae83b755cf4aae68c24fe36b80f339665f9d42fd 100644 (file)
@@ -99,9 +99,9 @@ struct vpe {
 
        /* elfloader stuff */
        void *load_addr;
-       u32 len;
+       unsigned long len;
        char *pbuffer;
-       u32 plen;
+       unsigned long plen;
 
        unsigned long __start;
 
@@ -253,11 +253,11 @@ void dump_mtregs(void)
 }
 
 /* Find some VPE program space  */
-static void *alloc_progmem(u32 len)
+static void *alloc_progmem(unsigned long len)
 {
 #ifdef CONFIG_MIPS_VPE_LOADER_TOM
        /* this means you must tell linux to use less memory than you physically have */
-       return (void *)((max_pfn * PAGE_SIZE) + KSEG0);
+       return pfn_to_kaddr(max_pfn);
 #else
        // simple grab some mem for now
        return kmalloc(len, GFP_KERNEL);