summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorKyoung Kim <kyoung.il.kim@intel.com>2018-12-18 16:48:09 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-10 13:58:47 -0800
commitcac2bbe86d867ed428c37f1b5b34fcf8594fcc24 (patch)
treea794ca621f0795ba00a09dc9c17a6a25187d2d8d /core
parent62adbc1bd61124f04405b9ee94b7172171546239 (diff)
downloadchrome-ec-cac2bbe86d867ed428c37f1b5b34fcf8594fcc24.tar.gz
core/minute-ia: set single precision for FPU
Set FPU single precision to improve trackpad processing time at default fpu context. BUG=b:120885570 TEST=check improvment of TP frame processing. Change-Id: Id78e878b4b38043c9c15b75d90dfd108e7de02a2 Signed-off-by: Kyoung Kim <kyoung.il.kim@intel.com> Reviewed-on: https://chromium-review.googlesource.com/1383551 Commit-Ready: Jett Rink <jettrink@chromium.org> Tested-by: Kyoung Il Kim <kyoung.il.kim@intel.com> Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Kyoung Il Kim <kyoung.il.kim@intel.com>
Diffstat (limited to 'core')
-rw-r--r--core/minute-ia/task.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/minute-ia/task.c b/core/minute-ia/task.c
index 77c429c288..adc498830b 100644
--- a/core/minute-ia/task.c
+++ b/core/minute-ia/task.c
@@ -556,8 +556,12 @@ void task_pre_init(void)
#ifdef CONFIG_FPU
static uint8_t default_fp_ctx[] = { /* Initial FP state */
- 0x7f, 0x03, 0xff, 0xff, 0x00, 0x00,
- 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+ 0x7f, 0x00, /* Control[0-15] */
+ 0xff, 0xff, /* unused */
+ 0x00, 0x00, /* Status[0-15] */
+ 0xff, 0xff, /* unused */
+ 0xff, 0xff, /* Tag[0-15] */
+ 0xff, 0xff};/* unused */
#endif
__asm__ __volatile__ ("movl %%cs, %0":"=r" (cs));