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)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 10 Dec 2018 02:52:46 +0000 (18:52 -0800)
commit8dbb653322f87451b11b085a4bcf5a924c7a4179
tree7575fa34907972a2035b5256e4a824a47ed415a9
parent2e99a2bc8f6c351eeec229910aa2e22f9b1b40dd
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