diff options
author | Hyungwoo Yang <hyungwoo.yang@intel.com> | 2019-04-17 00:21:28 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-19 14:45:16 -0700 |
commit | e7b1f511fde30b4ebb207ab7285e0ca103c49a03 (patch) | |
tree | d9d646048b76759b34ad49cdfb1b0e3f4c273285 | |
parent | 08234bde615db42c9ba509d2a2b5b1a2d43ac963 (diff) | |
download | chrome-ec-e7b1f511fde30b4ebb207ab7285e0ca103c49a03.tar.gz |
ish: fix task_start_called()
Variable "start_called" is never updated due to bug in __task_start.
this patch fixes the bug.
BRANCH=none
BUG=none
TEST=Tested on Arcada platform
Change-Id: Icdea8adf5a06c891188fc84bc49cb643a7e009ec
Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1570150
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r-- | core/minute-ia/switch.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/minute-ia/switch.S b/core/minute-ia/switch.S index 27aba1a7cc..79adfef7bd 100644 --- a/core/minute-ia/switch.S +++ b/core/minute-ia/switch.S @@ -29,7 +29,7 @@ .align 4 .func __task_start __task_start: - movl 0x4(%esp), %ebx + movl 0x4(%esp), %ecx movl current_task, %eax movl (%eax), %esp #ifdef CONFIG_FPU @@ -39,7 +39,7 @@ __task_start: frstor FPU_CTX_OFFSET(%eax) 1: #endif - movl $0x1, (%ebx) # first task is ready. set start_called = 1 + movl $0x1, (%ecx) # first task is ready. set start_called = 1 popa iret .endfunc |