MIPS: MT: Fix 32-bit dependencies. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Ralf Baechle and committed by
571e0bed b2d28b7e

+4 -4
+4 -4
arch/mips/kernel/vpe.c
··· 99 99 100 100 /* elfloader stuff */ 101 101 void *load_addr; 102 - u32 len; 102 + unsigned long len; 103 103 char *pbuffer; 104 - u32 plen; 104 + unsigned long plen; 105 105 106 106 unsigned long __start; 107 107 ··· 253 253 } 254 254 255 255 /* Find some VPE program space */ 256 - static void *alloc_progmem(u32 len) 256 + static void *alloc_progmem(unsigned long len) 257 257 { 258 258 #ifdef CONFIG_MIPS_VPE_LOADER_TOM 259 259 /* this means you must tell linux to use less memory than you physically have */ 260 - return (void *)((max_pfn * PAGE_SIZE) + KSEG0); 260 + return pfn_to_kaddr(max_pfn); 261 261 #else 262 262 // simple grab some mem for now 263 263 return kmalloc(len, GFP_KERNEL);