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 4, 2024
1 parent 8b8c842 commit 7a7fb57
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/arch/xtensa/include/xtensa/config/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,22 @@
* 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

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

0 comments on commit 7a7fb57

Please sign in to comment.