summaryrefslogtreecommitdiffstats
path: root/edksetup.bat
diff options
context:
space:
mode:
authorZhiguang Liu <zhiguang.liu@intel.com>2024-05-28 11:22:10 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-24 02:47:34 +0000
commit7033f359a99121fd2c3fefe03d9f0c64e8bfaa10 (patch)
treeefe84fecfca3c8a1933171befe901add7a98355d /edksetup.bat
parent76f441c57c6653d689fbe936ba494ebfdbc7cb4f (diff)
downloadedk2-7033f359a99121fd2c3fefe03d9f0c64e8bfaa10.tar.gz
UefiCpuPkg: Preserve Local APIC Timer Settings During BSP Switch
This update ensures the consistency of Local APIC timer settings across all processors when a BSP switch occurs. The Local APIC timer is utilized in two distinct scenarios: 1. As a delay mechanism within the timer library. 2. To generate periodic timer interrupts during the DXE phase. For scenario 1, APs can simply inherit the initial settings from the BSP. Even the local APIC timer setting is changed by BSP later, AP can still use the old setting. Therefore, the code to save the Local APIC timer can be moved to MpInitLibInitialize(). For scenario 2, because normal AP doesn't enable timer interrupt, we only need to care SwitchBsp case. It is crucial that the periodic timer interrupts remain operational after BSP is switched. To achieve this, the Local APIC timer settings on old BSP are now preserved and synced to new BSP. Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Diffstat (limited to 'edksetup.bat')
0 files changed, 0 insertions, 0 deletions