[MIPS] FLATMEM: introduce PHYS_OFFSET.
authorFranck Bui-Huu <fbuihuu@gmail.com>
Wed, 10 Jan 2007 08:44:05 +0000 (09:44 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 6 Feb 2007 16:53:13 +0000 (16:53 +0000)
The old code was assuming that min_low_pfn was always 0. This
means that platforms having a big hole at their memory start
paid the price of wasting some memory for the allocation of
unused entries in mem_map[].

This patch prevents this waste.

It introduces PHYS_OFFSET define which is the start of the
physical memory and uses it wherever needed. Specially when
converting physical/virtual addresses into virtual/physical
ones.

Currently all platforms defines PHYS_OFFSET to 0.

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

No differences found