From 410e0cf1d22c67585f0a5346e62f60aa4e90fe05 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 13 Sep 2017 20:20:55 -0400 Subject: Preliminary support for parallel core RSA CRT. --- hal_internal.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hal_internal.h') diff --git a/hal_internal.h b/hal_internal.h index a60d0b5..ac51cfb 100644 --- a/hal_internal.h +++ b/hal_internal.h @@ -103,6 +103,18 @@ static inline hal_error_t hal_io_wait_valid(const hal_core_t *core) return hal_io_wait(core, STATUS_VALID, &limit); } +static inline hal_error_t hal_io_wait_ready2(const hal_core_t *core1, const hal_core_t *core2) +{ + int limit = -1; + return hal_io_wait2(core1, core2, STATUS_READY, &limit); +} + +static inline hal_error_t hal_io_wait_valid2(const hal_core_t *core1, const hal_core_t *core2) +{ + int limit = -1; + return hal_io_wait2(core1, core2, STATUS_VALID, &limit); +} + /* * Static memory allocation on start-up. Don't use this except where * really necessary. By design, there's no way to free this, we don't -- cgit v1.2.3