浏览代码

[MIPS] Don't use max_pfn which is no longer initialized these days.

Still won't play nicely with esotheric configurations such as discontig
memory ...

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 17 年之前
父节点
当前提交
9f2546aded
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/mips/kernel/vpe.c

+ 1 - 1
arch/mips/kernel/vpe.c

@@ -269,7 +269,7 @@ static void *alloc_progmem(unsigned long len)
 	 * This means you must tell Linux to use less memory than you
 	 * This means you must tell Linux to use less memory than you
 	 * physically have, for example by passing a mem= boot argument.
 	 * physically have, for example by passing a mem= boot argument.
 	 */
 	 */
-	addr = pfn_to_kaddr(max_pfn);
+	addr = pfn_to_kaddr(max_low_pfn);
 	memset(addr, 0, len);
 	memset(addr, 0, len);
 #else
 #else
 	/* simple grab some mem for now */
 	/* simple grab some mem for now */