Home
last modified time | relevance | path

Searched hist:"87 d9618588b42f30c3f52297702ea83b7d3ecd12" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/arch/arm/mm/
H A Dtee_pager.c87d9618588b42f30c3f52297702ea83b7d3ecd12 Fri Jul 14 09:42:52 UTC 2017 Jens Wiklander <jens.wiklander@linaro.org> core: pager: avoid page faults with pager lock held

When a normal thread takes the pager lock there must be no page faults
while the lock is held. This is has so far been ensured by feeding the
function to the KEEP_PAGER() macro, but this will only take care of the
actual code not stack usage. This patch introduces a new pager lock
function, pager_lock_check_stack() which will make sure that the
estimated needed stack is mapped before the lock is acquired.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>