mtx: correct pagemap loading
authorAlan Cox <alan@linux.intel.com>
Tue, 16 Dec 2014 23:12:02 +0000 (23:12 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 16 Dec 2014 23:12:02 +0000 (23:12 +0000)
Kernel/platform-mtx/main.c

index 0c1a7fd..6917be8 100644 (file)
@@ -12,7 +12,7 @@ void pagemap_init(void)
 {
  int i;
  /* Up to ten banks */
- for (i = 0x81; i <= membanks; i++)
+ for (i = 0x81; i < 0x80 + membanks; i++)
   pagemap_add(i);
 }