abcaa49 UefiCpuPkg/CpuS3DataDxe: do not allocate useless register tables

Authored and Committed by lersek 3 years ago
    UefiCpuPkg/CpuS3DataDxe: do not allocate useless register tables
    
    CpuS3DataDxe allocates the "RegisterTable" and "PreSmmInitRegisterTable"
    arrays in ACPI_CPU_DATA just so every processor in the system can have its
    own empty register table, matched by APIC ID. This has never been useful
    in practice.
    
    Given commit e992cc3f4859 ("UefiCpuPkg PiSmmCpuDxeSmm: Reduce SMRAM
    consumption in CpuS3.c", 2021-01-11), simply leave both
    "AcpiCpuData->RegisterTable" and "AcpiCpuData->PreSmmInitRegisterTable"
    initialized to the zero address. This simplifies the driver, and saves
    both normal RAM (boot services data type memory) and -- in PiSmmCpuDxeSmm
    -- SMRAM.
    
    Cc: Eric Dong <eric.dong@intel.com>
    Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
    Cc: Rahul Kumar <rahul1.kumar@intel.com>
    Cc: Ray Ni <ray.ni@intel.com>
    Cc: Star Zeng <star.zeng@intel.com>
    Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3159
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>