Skip to content

Commit

Permalink
src: xtensa: core: Declare UINT32_C
Browse files Browse the repository at this point in the history
Add UINT32_C definition required for core file of platform ACP_7_0.

Signed-off-by: SaiSurya Ch <saisurya.chakkaveeravenkatanaga@amd.com>
  • Loading branch information
saisurya-ch committed Sep 5, 2024
1 parent 77a49f7 commit 345c95d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/arch/xtensa/include/xtensa/config/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,28 @@
#define XTENSA_CONFIG_CORE_H

/*
* This define is used by the new 2023 xt-clang toolchain and, while there are a few definitions
* This define is used by Assembly files of platform ACP_7_0's toolchain.
* Else condition has new 2023 xt-clang toolchain and, while there are a few definitions
* (identical to this one) in various implementations such as newlib, none of them is in use when
* building SOF with Zephyr and XtensaTools.
*/

#if defined(__ZEPHYR__)
#if defined (_ASMLANGUAGE) || defined (__ASSEMBLER__)

#ifndef UINT32_C
#define UINT32_C(x) x
#endif

#else

#ifndef __UINT32_C
#define __UINT32_C(x) x ## U
#endif

#ifndef UINT32_C
#define UINT32_C(x) __UINT32_C(x)
#endif

#endif
#endif /*_ASMLANGUAGE or __ASSEMBLER__*/

/* CONFIGURATION INDEPENDENT DEFINITIONS: */
#ifdef __XTENSA__
Expand Down

0 comments on commit 345c95d

Please sign in to comment.