commit | 67283c2753f42e049c32c116d34666adf9d9e3fd | [log] [tgz] |
---|---|---|
author | Jens Wiklander <jens.wiklander@linaro.org> | Tue Jan 14 14:31:50 2020 +0100 |
committer | Jerome Forissier <jerome@forissier.org> | Tue Jan 14 19:25:40 2020 +0100 |
tree | a26ac2e1c18c9a3464a69293f3cc81b670ca3d74 | |
parent | 1c832d7c41cdb2f617bffa74c3d70f7c4a5667fc [diff] |
core: make SMALL_PAGE_MASK and friends of type paddr_t Makes SMALL_PAGE_MASK, CORE_MMU_PGDIR_MASK, CORE_MMU_USER_CODE_MASK and CORE_MMU_USER_PARAM_MASK of type paddr_t to allow correct masking of significant bits. Example: extern paddr_t addr; paddr_t page_addr = addr & ~SMALL_PAGE_MASK If paddr_t is a 64-bit type SMALL_PAGE_MASK must also be 64-bit wide or the ~ operation will not set all the higher bits. Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome@forissier.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers