We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5682a7f commit d3dcf36Copy full SHA for d3dcf36
lib/libc/newlib/libc-hooks.c
@@ -23,6 +23,10 @@
23
#include <zephyr/kernel/mm.h>
24
#include <sys/time.h>
25
26
+#ifdef CONFIG_XTENSA
27
+#include <xtensa/config/core-isa.h>
28
+#endif
29
+
30
int _fstat(int fd, struct stat *st);
31
int _read(int fd, void *buf, int nbytes);
32
int _write(int fd, const void *buf, int nbytes);
@@ -88,6 +92,9 @@ int _getpid(void);
88
92
#elif defined(CONFIG_ARC)
89
93
#define HEAP_BASE ROUND_UP(USED_RAM_END_ADDR, \
90
94
Z_ARC_MPU_ALIGN)
95
+ #elif defined(CONFIG_XTENSA)
96
+ #define HEAP_BASE ROUND_UP(USED_RAM_END_ADDR, \
97
+ XCHAL_MPU_ALIGN)
91
98
#else
99
#error "Unsupported platform"
100
#endif /* CONFIG_<arch> */
0 commit comments