summaryrefslogtreecommitdiff
path: root/core/minute-ia/switch.S
diff options
context:
space:
mode:
authorHyungwoo Yang <hyungwoo.yang@intel.com>2019-01-23 23:20:23 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-30 20:41:19 -0800
commit816b06ea5868d72b9a2858e395c056d5edc7354d (patch)
tree868e53f4466f4e74f31e3ed5f2ce7d6299335138 /core/minute-ia/switch.S
parent77e81a4a63e3edaaefc110cfa228701ba973aca4 (diff)
downloadchrome-ec-816b06ea5868d72b9a2858e395c056d5edc7354d.tar.gz
ish: apply FPU context of the first task
FPU H/W configuration is available per task and it is initialized in task_pre_init() but currently the configuration for the first task is ignored due to lack of restoring(to H/W) in __task_start() function. This patch makes sure that the configuration restored to H/W. BRANCH=none BUG=none TEST=verified in Atlas platform Change-Id: I974fec779b3683fa7e9413dc73a4b8dcfb291596 Reviewed-on: https://chromium-review.googlesource.com/1435484 Commit-Ready: Hyungwoo Yang <hyungwoo.yang@intel.com> Tested-by: Hyungwoo Yang <hyungwoo.yang@intel.com> Reviewed-by: Hyungwoo Yang <hyungwoo.yang@intel.com> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'core/minute-ia/switch.S')
-rw-r--r--core/minute-ia/switch.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/minute-ia/switch.S b/core/minute-ia/switch.S
index 9391c186e4..b467a39c3c 100644
--- a/core/minute-ia/switch.S
+++ b/core/minute-ia/switch.S
@@ -31,6 +31,9 @@
__task_start:
movl current_task, %eax
movl (%eax), %esp
+#ifdef CONFIG_FPU
+ frstor 20(%eax)
+#endif
popa
iret
.endfunc