x86: swap: save the scratch pad registers.
Save the required scratch pad register (in this case only edx) before calling the C function. Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
This commit is contained in:
parent
f20afb7473
commit
808ad6101e
1 changed files with 2 additions and 0 deletions
|
@ -143,7 +143,9 @@ SECTION_FUNC(TEXT, __swap)
|
|||
|
||||
#ifdef CONFIG_KERNEL_EVENT_LOGGER_CONTEXT_SWITCH
|
||||
/* Register the context switch */
|
||||
push %edx
|
||||
call _sys_k_event_logger_context_switch
|
||||
pop %edx
|
||||
#endif
|
||||
movl _kernel_offset_to_ready_q_cache(%edi), %eax
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue