]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - optee/ti-optee-client.git/commit
benchmark: fix computation of page address
authorJerome Forissier <jerome.forissier@linaro.org>
Mon, 6 Aug 2018 13:18:59 +0000 (15:18 +0200)
committerJérôme Forissier <jerome.forissier@linaro.org>
Fri, 10 Aug 2018 09:20:08 +0000 (11:20 +0200)
commit8742233f31d8acf17c252fbcb981d885144fe633
tree94058a29e16d8c5e07274ca7de8f1fac89cde0e7
parentbd0e7c883a3912ed6958928b86fb4283f2014ca0
benchmark: fix computation of page address

Subtracting the size *in bytes* from a (intptr_t *) is incorrect, since it
will subtract n * sizeof(intptr_t).

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
libteec/src/teec_benchmark.c