aboutsummaryrefslogtreecommitdiff
path: root/hal_internal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-09-13 20:20:55 -0400
committerRob Austein <sra@hactrn.net>2017-09-13 20:20:55 -0400
commit410e0cf1d22c67585f0a5346e62f60aa4e90fe05 (patch)
tree4650beec709d2128e6a03a5b09645e295c7a2797 /hal_internal.h
parent5522df4f68bfa66b9b4446fdfb92783694586f70 (diff)
Preliminary support for parallel core RSA CRT.
Diffstat (limited to 'hal_internal.h')
-rw-r--r--hal_internal.h12
1 files changed, 12 insertions, 0 deletions
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