Home
last modified time | relevance | path

Searched hist:"6 b40e452c753ea54c32a5a792bf3788637b137bf" (Results 1 – 1 of 1) sorted by relevance

/optee_os/lib/libutils/ext/include/
H A Dconfine_array_index.h6b40e452c753ea54c32a5a792bf3788637b137bf Tue Mar 03 14:30:59 UTC 2020 Jens Wiklander <jens.wiklander@linaro.org> libutils: import confine_array_index.h from Fuchsia

Imports confine_array_index.h from [1].

Replaced include statements to suit OP-TEE and removed the namespace
directive. Added content from [2] as a comment to clarify the license.

The speculation safe function confine_array_index() is provided with
this.

Note that only AArch64 and x86_64 versions of the function is implemented
in this commit.

Link: [1] https://fuchsia.googlesource.com/fuchsia/+/39d9b8c2dbb0f6133a835676f8f669b07aca6b30/zircon/system/ulib/fbl/include/fbl/confine_array_index.h
Link: [2] https://fuchsia.googlesource.com/fuchsia/+/39d9b8c2dbb0f6133a835676f8f669b07aca6b30/LICENSE

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jerome Forissier <jerome@forissier.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>