···99100 /* elfloader stuff */101 void *load_addr;102- u32 len;103 char *pbuffer;104- u32 plen;105106 unsigned long __start;107···253}254255/* Find some VPE program space */256-static void *alloc_progmem(u32 len)257{258#ifdef CONFIG_MIPS_VPE_LOADER_TOM259 /* this means you must tell linux to use less memory than you physically have */260- return (void *)((max_pfn * PAGE_SIZE) + KSEG0);261#else262 // simple grab some mem for now263 return kmalloc(len, GFP_KERNEL);
···99100 /* elfloader stuff */101 void *load_addr;102+ unsigned long len;103 char *pbuffer;104+ unsigned long plen;105106 unsigned long __start;107···253}254255/* Find some VPE program space */256+static void *alloc_progmem(unsigned long len)257{258#ifdef CONFIG_MIPS_VPE_LOADER_TOM259 /* this means you must tell linux to use less memory than you physically have */260+ return pfn_to_kaddr(max_pfn);261#else262 // simple grab some mem for now263 return kmalloc(len, GFP_KERNEL);