Commit 571e0bed authored by Ralf Baechle's avatar Ralf Baechle Committed by

MIPS: MT: Fix 32-bit dependencies.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent b2d28b7e
...@@ -99,9 +99,9 @@ struct vpe { ...@@ -99,9 +99,9 @@ struct vpe {
/* elfloader stuff */ /* elfloader stuff */
void *load_addr; void *load_addr;
u32 len; unsigned long len;
char *pbuffer; char *pbuffer;
u32 plen; unsigned long plen;
unsigned long __start; unsigned long __start;
...@@ -253,11 +253,11 @@ void dump_mtregs(void) ...@@ -253,11 +253,11 @@ void dump_mtregs(void)
} }
/* 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 #ifdef CONFIG_MIPS_VPE_LOADER_TOM
/* this means you must tell linux to use less memory than you physically have */ /* 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 #else
// simple grab some mem for now // simple grab some mem for now
return kmalloc(len, GFP_KERNEL); return kmalloc(len, GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment