File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ x86_sse_init:
183183mxcsr: .long X86_MXCSR_SANE
184184
185185/*
186- * void z_arch_switch (void *switch_to, void **switched_from);
186+ * void z_x86_switch (void *switch_to, void **switched_from);
187187 *
188188 * Note that switch_handle for us is simply a pointer to the containing
189189 * 'struct k_thread', thus:
@@ -192,8 +192,8 @@ mxcsr: .long X86_MXCSR_SANE
192192 * RSI = (struct k_thread **) switched_from
193193 */
194194
195- .globl z_arch_switch
196- z_arch_switch :
195+ .globl z_x86_switch
196+ z_x86_switch :
197197 movq (%rsi ), %rsi
198198
199199 andb $~X86_THREAD_FLAG_ALL, _thread_offset_to_flags(%rsi )
Original file line number Diff line number Diff line change 66#ifndef ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_FUNC_H_
77#define ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_FUNC_H_
88
9+ #include <kernel_structs.h>
10+
911#ifndef _ASMLANGUAGE
1012
11- extern void z_arch_switch (void * switch_to , void * * switched_from );
13+ extern void z_x86_switch (void * switch_to , void * * switched_from );
14+
15+ static inline void z_arch_switch (void * switch_to , void * * switched_from )
16+ {
17+ z_x86_switch (switch_to , switched_from );
18+ }
1219
1320/**
1421 * @brief Initialize scheduler IPI vector.
You can’t perform that action at this time.
0 commit comments