commit | b96514926b8ec7d98c36c4943df452b73bcc04a4 | [log] [tgz] |
---|---|---|
author | Jens Wiklander <jens.wiklander@linaro.org> | Mon Nov 11 10:11:45 2019 +0100 |
committer | Jérôme Forissier <jerome@forissier.org> | Thu Nov 14 15:18:21 2019 +0100 |
tree | b426f545502480decd8b1c3a6b30d47c35cdb2f7 | |
parent | 8800b01d9f13a104b1c042de0c2106dedac38547 [diff] |
core: reference count struct mobj The mobj interface is changed to use reference counting of mobjs, the direct mobj_free() call is replaced by mobj_put(). As expected a mobj_get() is also added to handle multiple references to the same mobj. This also changes already present reference counting in struct mobj_reg_shm to use the reference counting mechanism now available in struct mobj. The VM_FLAG_EXCLUSIVE_MOBJ flag is removed since the referenced mobj is put instead when a struct vm_region is removed. Tested-by: Jerome Forissier <jerome@forissier.org> (HiKey960) Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.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