intstub.S: fix argument to _sys_power_save_idle_exit on IAMCU
Change-Id: I5aa1abe464ba2b8f9c36be78a95705ffcf993c7d Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
70d8a32740
commit
26b1651f0c
1 changed files with 10 additions and 0 deletions
|
@ -450,7 +450,14 @@ handle_idle:
|
||||||
#if defined(CONFIG_NANOKERNEL) && defined(CONFIG_TICKLESS_IDLE)
|
#if defined(CONFIG_NANOKERNEL) && defined(CONFIG_TICKLESS_IDLE)
|
||||||
call _power_save_idle_exit
|
call _power_save_idle_exit
|
||||||
#else
|
#else
|
||||||
|
/* Populate 'ticks' argument to _sys_power_save_idle_exit */
|
||||||
|
#ifdef CONFIG_X86_IAMCU
|
||||||
|
movl __tNANO_idle_OFFSET(%ecx), %eax
|
||||||
|
#else
|
||||||
|
/* SYS V calling convention */
|
||||||
push __tNANO_idle_OFFSET(%ecx)
|
push __tNANO_idle_OFFSET(%ecx)
|
||||||
|
#endif
|
||||||
|
/* Zero out _nanokernel.idle */
|
||||||
movl $0, __tNANO_idle_OFFSET(%ecx)
|
movl $0, __tNANO_idle_OFFSET(%ecx)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -461,7 +468,10 @@ handle_idle:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
call _sys_power_save_idle_exit
|
call _sys_power_save_idle_exit
|
||||||
|
#ifndef CONFIG_X86_IAMCU
|
||||||
|
/* SYS V: discard 'ticks' argument passed on the stack */
|
||||||
add $0x4, %esp
|
add $0x4, %esp
|
||||||
|
#endif
|
||||||
#endif /* CONFIG_NANOKERNEL && CONFIG_TICKLESS_IDLE */
|
#endif /* CONFIG_NANOKERNEL && CONFIG_TICKLESS_IDLE */
|
||||||
popl %edx
|
popl %edx
|
||||||
popl %eax
|
popl %eax
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue