···9999100100 /* elfloader stuff */101101 void *load_addr;102102- u32 len;102102+ unsigned long len;103103 char *pbuffer;104104- u32 plen;104104+ unsigned long plen;105105106106 unsigned long __start;107107···253253}254254255255/* Find some VPE program space */256256-static void *alloc_progmem(u32 len)256256+static void *alloc_progmem(unsigned long len)257257{258258#ifdef CONFIG_MIPS_VPE_LOADER_TOM259259 /* this means you must tell linux to use less memory than you physically have */260260- return (void *)((max_pfn * PAGE_SIZE) + KSEG0);260260+ return pfn_to_kaddr(max_pfn);261261#else262262 // simple grab some mem for now263263 return kmalloc(len, GFP_KERNEL);