diff options
author | Hu, Hebo <hebo.hu@intel.com> | 2019-03-08 15:34:21 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-08 02:51:29 -0700 |
commit | 6a184d5019f0b45fe692da09a14e9ce7c853d68c (patch) | |
tree | 541192356148342f09bacebb75bea95027e98e7d /core/minute-ia/init.S | |
parent | d0a350e6691a9d93138051e2aa00e0d6c26151b5 (diff) | |
download | chrome-ec-6a184d5019f0b45fe692da09a14e9ce7c853d68c.tar.gz |
ish/ish5: implement AON low power management framework
AON PM framework including:
1: AON task skeleton
2: task switching between main FW and AON task
3: 'idlestats' console command for D0ix statistic information
4: D0ix entrance in idle task
BUG=b:122364080
BRANCH=none
TEST=tested on arcada
Change-Id: Iefa9e067892d5c42d9f0c795275fe88e5a36115b
Signed-off-by: Hu, Hebo <hebo.hu@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1510518
Commit-Ready: Rushikesh S Kadam <rushikesh.s.kadam@intel.com>
Commit-Ready: Hebo Hu <hebo.hu@intel.corp-partner.google.com>
Tested-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Hebo Hu <hebo.hu@intel.corp-partner.google.com>
Diffstat (limited to 'core/minute-ia/init.S')
-rw-r--r-- | core/minute-ia/init.S | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/minute-ia/init.S b/core/minute-ia/init.S index 8a5ec8e4e2..66154b2c19 100644 --- a/core/minute-ia/init.S +++ b/core/minute-ia/init.S @@ -14,6 +14,8 @@ .global __idt +.global __gdt +.global __gdt_ptr # GDT is loaded by ISH ROM. The FW code retains the same GDT # and hence the same segment selector @@ -307,6 +309,19 @@ __gdt: # Flags: 0x93 (Data R/W, Present, DPL0, Acessed=1) .long GEN_GDT_DESC_LO(0x0, 0xffffffff, GDT_DESC_DATA_FLAGS) .long GEN_GDT_DESC_UP(0x0, 0xffffffff, GDT_DESC_DATA_FLAGS) +#if defined(CONFIG_ISH_PM_AONTASK) + # placeholder entries, will be updated by init_aon_task() + # in power_mgt.c + # Entry 3: placeholder TSS descriptor for main FW + .long 0x0 + .long 0x0 + # Entry 4: placeholder TSS descriptor for aontask + .long 0x0 + .long 0x0 + # Entry 5: placeholder LDT descriptor for aontask + .long 0x0 + .long 0x0 +#endif #.section .data __idt_ptr: |