mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
replace arch_switch_to with pure asm code instead of inline asm
after compile, the compiled code could change rsp, so use pure asm code to avoid such problem which will cause schedule switch failure. Tracked-On: #2410 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -50,6 +50,6 @@ int32_t need_offline(uint16_t pcpu_id);
|
||||
void schedule(void);
|
||||
void run_sched_thread(struct sched_object *obj);
|
||||
|
||||
void arch_switch_to(struct sched_object *prev, struct sched_object *next);
|
||||
void arch_switch_to(void *prev_sp, void *next_sp);
|
||||
#endif /* SCHEDULE_H */
|
||||
|
||||
|
Reference in New Issue
Block a user