Skip to content

Commit b67e568

Browse files
committed
Merge branch 'keithp-sdk-1.0-dev' into combined-west-updates
2 parents c51aa13 + c590e76 commit b67e568

File tree

14 files changed

+33
-16
lines changed

14 files changed

+33
-16
lines changed

arch/arm/core/cortex_m/thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ FUNC_NORETURN void z_arm_switch_to_main_no_multithreading(k_thread_entry_t main_
649649
,
650650
[_psplim] "r"(psplim)
651651
#endif
652-
: "r0", "r1", "r2", "ip", "lr");
652+
: "r0", "r1", "r2", "ip", "lr", "memory");
653653

654654
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */
655655
}

arch/x86/core/ia32/fatal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static FUNC_NORETURN __used void df_handler_top(void)
219219
/* NT bit is set in EFLAGS so we will task switch back to _main_tss
220220
* and run df_handler_bottom
221221
*/
222-
__asm__ volatile ("iret");
222+
__asm__ volatile ("iret" ::: "memory");
223223
CODE_UNREACHABLE;
224224
}
225225

arch/x86/zefi/zefi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def build_elf(elf_file, include_dirs):
117117
includes.extend(["-I", include_dir])
118118
cmd = ([args.compiler, "-shared", "-Wall", "-Werror", "-I."] + includes +
119119
["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar",
120-
"-Wl,-nostdlib", "-T", ldscript, "-o", "zefi.elf", cfile])
120+
"-Wl,-nostdlib", "-nostartfiles", "-T", ldscript, "-o", "zefi.elf", cfile])
121121
verbose(" ".join(cmd))
122122
subprocess.run(cmd, check = True)
123123

arch/xtensa/core/fatal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void xtensa_simulator_exit(int return_code)
118118
"simcall\n\t"
119119
:
120120
: [code] "r" (return_code), [call] "i" (SYS_exit)
121-
: "a3", "a2");
121+
: "a3", "a2", "memory");
122122

123123
CODE_UNREACHABLE;
124124
}

drivers/adc/adc_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static void adc_stm32_calibration_start(const struct device *dev, bool single_en
498498
const struct adc_stm32_cfg *config =
499499
(const struct adc_stm32_cfg *)dev->config;
500500
ADC_TypeDef *adc = config->base;
501-
#ifdef LL_ADC_SINGLE_ENDED
501+
#if defined(LL_ADC_SINGLE_ENDED) && defined(LL_ADC_DIFFERENTIAL_ENDED)
502502
uint32_t calib_type = single_ended ? LL_ADC_SINGLE_ENDED : LL_ADC_DIFFERENTIAL_ENDED;
503503
#else
504504
ARG_UNUSED(single_ended);

include/zephyr/arch/x86/ia32/arch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ extern struct task_state_segment _main_tss;
362362
"int %[vector]\n\t" \
363363
: \
364364
: [vector] "i" (Z_X86_OOPS_VECTOR), \
365-
[reason] "i" (reason_p)); \
365+
[reason] "i" (reason_p) \
366+
: "memory"); \
366367
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */ \
367368
} while (false)
368369

include/zephyr/arch/x86/intel64/arch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ static ALWAYS_INLINE unsigned int arch_irq_lock(void)
6666
"movq %[reason], %%rax\n\t" \
6767
"int $32\n\t" \
6868
: \
69-
: [reason] "i" (reason_p)); \
69+
: [reason] "i" (reason_p) \
70+
: "memory"); \
7071
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */ \
7172
} while (false)
7273

modules/cmsis-dsp/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ if(CONFIG_CMSIS_DSP)
1919
${cmsis_glue_path}/CMSIS/Core/Include
2020
)
2121

22+
# Define ZEPHYR_INCLUDE_TOOLCHAIN_STDINT_H_ to avoid using Zephyr's stdint.h
23+
zephyr_library_compile_definitions(ZEPHYR_INCLUDE_TOOLCHAIN_STDINT_H_)
24+
2225
# Global Feature Definitions
2326
zephyr_library_compile_definitions_ifdef(CONFIG_CMSIS_DSP_NEON ARM_MATH_NEON)
2427
zephyr_library_compile_definitions_ifdef(CONFIG_CMSIS_DSP_NEON_EXPERIMENTAL ARM_MATH_NEON_EXPERIMENTAL)

soc/intel/intel_adsp/cavs/multiprocessing.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ __imr void soc_mp_init(void)
201201

202202
int soc_adsp_halt_cpu(int id)
203203
{
204+
#if CONFIG_MP_MAX_NUM_CPUS > 1
204205
unsigned int irq_mask;
205206

206207
if (id == 0 || id == arch_curr_cpu()->id) {
@@ -237,4 +238,7 @@ int soc_adsp_halt_cpu(int id)
237238
while ((CAVS_SHIM.pwrsts & CAVS_PWRSTS_PDSPPGS(id))) {
238239
}
239240
return 0;
241+
#else
242+
return -EINVAL;
243+
#endif
240244
}

subsys/testsuite/include/zephyr/interrupt_util.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#ifndef INTERRUPT_UTIL_H_
88
#define INTERRUPT_UTIL_H_
99

10+
#define k_str_out_count(s) k_str_out((s), sizeof(s) - 1);
11+
1012
#if defined(CONFIG_CPU_CORTEX_M)
1113
#include <cmsis_core.h>
1214

@@ -57,7 +59,7 @@ static inline uint32_t get_available_nvic_line(uint32_t initial_offset)
5759

5860
static inline void trigger_irq(int irq)
5961
{
60-
printk("Triggering irq : %d\n", irq);
62+
k_str_out_count("Triggering irq\n");
6163
#if defined(CONFIG_SOC_TI_LM3S6965_QEMU) || defined(CONFIG_CPU_CORTEX_M0) || \
6264
defined(CONFIG_CPU_CORTEX_M0PLUS) || defined(CONFIG_CPU_CORTEX_M1) || \
6365
defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE)
@@ -74,7 +76,7 @@ static inline void trigger_irq(int irq)
7476

7577
static inline void trigger_irq(int irq)
7678
{
77-
printk("Triggering irq : %d\n", irq);
79+
k_str_out_count("Triggering irq\n");
7880

7981
/* Ensure that the specified IRQ number is a valid SGI interrupt ID */
8082
zassert_true(irq <= 15, "%u is not a valid SGI interrupt ID", irq);
@@ -96,7 +98,7 @@ static inline void trigger_irq(int irq)
9698
#elif defined(CONFIG_ARC)
9799
static inline void trigger_irq(int irq)
98100
{
99-
printk("Triggering irq : %d\n", irq);
101+
k_str_out_count("Triggering irq\n");
100102
z_arc_v2_aux_reg_write(_ARC_V2_AUX_IRQ_HINT, irq);
101103
}
102104

0 commit comments

Comments
 (0)