From d0de6fdfa8312147e7d991cf5326e3394b9abf3c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 15 Jul 2021 16:51:17 +0200 Subject: score: Add _IO_Relax() This function may be used to burn a couple of processor cycles with minimum impact on the system bus. It may be used in busy wait loops. Since it is a global function, it is possible to wrap it in device driver test code. --- cpukit/include/rtems/score/io.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpukit/include') diff --git a/cpukit/include/rtems/score/io.h b/cpukit/include/rtems/score/io.h index d7bf188be0..106418f185 100644 --- a/cpukit/include/rtems/score/io.h +++ b/cpukit/include/rtems/score/io.h @@ -133,6 +133,14 @@ int _IO_Base64url( int wordlen ); +/** + * @brief Issues a couple of no-operation instructions. + * + * This function may be used to burn a couple of processor cycles with minimum + * impact on the system bus. It may be used in busy wait loops. + */ +void _IO_Relax( void ); + /** @} */ #ifdef __cplusplus -- cgit v1.2.3