commit | d89b72c7bf27cded247ef6c640b7bdf322a329b6 | [log] [tgz] |
---|---|---|
author | Alison Wang <b18965@freescale.com> | Wed Sep 09 10:22:02 2015 +0800 |
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | Fri Oct 16 07:55:51 2015 +0200 |
tree | 24d8f51da79a8a92ad533fb87122756ba78d4d3b | |
parent | ece3cc0915190319703f3131c738c1b3471c4db9 [diff] |
arm: mmu: Add missing volatile for reading SCTLR register Add 'volatile' qualifier to the asm statement in get_cr() so that the statement is not optimized out by the compiler. (http://comments.gmane.org/gmane.linux.linaro.toolchain/5163) Without the 'volatile', get_cr() returns a wrong value which prevents enabling the MMU and later causes a PCIE VA access failure. Signed-off-by: Alison Wang <alison.wang@freescale.com>