Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/* elfloader stuff */
void *load_addr;
/* elfloader stuff */
void *load_addr;
}
/* Find some VPE program space */
}
/* 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 */
{
#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);
#else
// simple grab some mem for now
return kmalloc(len, GFP_KERNEL);