[MIPS] paging_init(): use highend_pfn/highstart_pfn
authorFranck Bui-Huu <fbuihuu@gmail.com>
Wed, 6 Dec 2006 15:48:28 +0000 (16:48 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 12 Dec 2006 01:46:24 +0000 (01:46 +0000)
commitcbb8fc07974073543fdc61da23713ab49ddd3ced
treeb7f2bf310dd2ae832c6b158d56f9124a18b0bc52
parentb228f4c54df37b53c6f364aa7f3efa4280bcc4f0
[MIPS] paging_init(): use highend_pfn/highstart_pfn

This patch makes paging_init() use highend_pfn/highstart_pfn globals.

It removes the need of 'high' local which was needed only by HIGHMEM config.

More important perhaps, it fixes a bug when HIGHMEM is set but there's
actually no physical highmem (highend_pfn = 0)

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/init.c