Skip to content

Commit

Permalink
shell: do not alias atomic_t
Browse files Browse the repository at this point in the history
Previously, a `uint32_t` was aliased as an `atomic_t`. However,
with zephyrproject-rtos#39531, `atomic_t` is now a `long` under the hood, which
is 64-bit on 64-bit platforms.

Fixes zephyrproject-rtos#40369

Signed-off-by: Christopher Friedt <[email protected]>
  • Loading branch information
cfriedt committed Nov 16, 2021
1 parent 43622e0 commit 9042b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/shell/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ BUILD_ASSERT((sizeof(struct shell_backend_ctx_flags) == sizeof(uint32_t)),
* @internal @brief Union for internal shell usage.
*/
union shell_backend_cfg {
uint32_t value;
atomic_t value;
struct shell_backend_config_flags flags;
};

Expand Down

0 comments on commit 9042b9a

Please sign in to comment.