mm: check phys_to_xxxx macro on 32bit OS [1/1]
authortao zeng <tao.zeng@amlogic.com>
Tue, 20 Nov 2018 04:14:57 +0000 (12:14 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Mon, 17 Dec 2018 06:55:06 +0000 (14:55 +0800)
commit860807566ea3f148416a0b265c582775fbba90c8
tree9d7dc2f8153d7314b3570e1629e1d99f8ce01096
parent72d65c16340af5bd07dd8ba437f44b6b37cc1854
mm: check phys_to_xxxx macro on 32bit OS [1/1]

PD#SWPL-1909

Problem:
If physical address of a memory location is not in linear mapping
range, then any caller with phys_to_xxxx to get a pointer will
cause bug.

Solution:
Check input address range for phys_to_xxxx to get a BUG output.
This change is used for debug

Verify:
P212

Change-Id: I13bcaa3983e2d730b8d2bc03cd28c62585f49969
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
arch/arm/include/asm/memory.h
arch/arm/mm/mmu.c