From 80f73a053f768487df85017395b7c6612ae3bea4 Mon Sep 17 00:00:00 2001 From: Christopher Friedt Date: Tue, 26 Oct 2021 13:58:11 -0400 Subject: [PATCH] doc kernel: atomics: support for 64-bit atomic operations By redefining `atomic_t` as `long`, the type is 32-bit on 32-bit architectures and 64-bit on 64-bit architectures. Signed-off-by: Christopher Friedt --- doc/reference/kernel/other/atomic.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/reference/kernel/other/atomic.rst b/doc/reference/kernel/other/atomic.rst index 4c792e7404d..607b4d2e8ab 100644 --- a/doc/reference/kernel/other/atomic.rst +++ b/doc/reference/kernel/other/atomic.rst @@ -3,8 +3,9 @@ Atomic Services ############### -An :dfn:`atomic variable` is a 32-bit variable that can be read and modified -by threads and ISRs in an uninterruptible manner. +An :dfn:`atomic variable` is one that can be read and modified +by threads and ISRs in an uninterruptible manner. It 32-bit on +32-bit machines and 64-bit on 64-bit machines. .. contents:: :local: