]> git.baikalelectronics.ru Git - arm-tf.git/commit
hikey: fix assert in sec_protect()
authorVictor Chong <victor.chong@linaro.org>
Sat, 27 Jan 2018 12:36:12 +0000 (21:36 +0900)
committerVictor Chong <victor.chong@linaro.org>
Sat, 27 Jan 2018 15:07:07 +0000 (00:07 +0900)
commitd5d5595ab16d54d779108922d3b74f24c94c7eb7
tree7470688a74c37c47d2c3af11900c7b91cc361876
parent5df277800f89754a3ee103d944ddb1490bf1b36d
hikey: fix assert in sec_protect()

`assert(e)` was used in place of `if (e) ERROR()` when sec_protect()
was ported from hikey fork so the logic should have been reversed.

Fixes: 3d5d9f5a ("hikey: configure the top 16MB of DRAM as secure")
Fixes: 52988b38 ("hikey: configure 4 MB of secure DRAM for OP-TEE
Secure Data Path")
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Tested-by: Victor Chong <victor.chong@linaro.org>
plat/hisilicon/hikey/hikey_security.c