debuggers.hg

changeset 20985:54c09c71fe47

Vcpu hotplug: Move ACPI processor from \_PR to \_SB

Move processor from \_PR to \_SB. ACPI processor can be defined
under \_PR or \_SB. However, recently os like linux 2.6.30/32 support
cpu hotplug better for \_SB processor object.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Feb 15 08:13:26 2010 +0000 (2010-02-15)
parents 3bb163b74673
children 8a8392a84280
files tools/firmware/hvmloader/acpi/mk_dsdt.c
line diff
     1.1 --- a/tools/firmware/hvmloader/acpi/mk_dsdt.c	Fri Feb 12 09:24:18 2010 +0000
     1.2 +++ b/tools/firmware/hvmloader/acpi/mk_dsdt.c	Mon Feb 15 08:13:26 2010 +0000
     1.3 @@ -83,7 +83,7 @@ int main(int argc, char **argv)
     1.4      indent_level++;
     1.5  
     1.6      /**** Processor start ****/
     1.7 -    push_block("Scope", "\\_PR");
     1.8 +    push_block("Scope", "\\_SB");
     1.9  
    1.10      /* MADT checksum */
    1.11      stmt("OperationRegion", "MSUM, SystemMemory, \\_SB.MSUA, 1");
    1.12 @@ -120,7 +120,7 @@ int main(int argc, char **argv)
    1.13          stmt("Return", "0xF");
    1.14          pop_block();
    1.15          push_block("Else", NULL);
    1.16 -        stmt("Return", "0x9");
    1.17 +        stmt("Return", "0x0");
    1.18          pop_block();
    1.19          pop_block();
    1.20  
    1.21 @@ -150,16 +150,16 @@ int main(int argc, char **argv)
    1.22          /* Extract current CPU's status: 0=offline; 1=online. */
    1.23          stmt("And", "Local1, 1, Local2");
    1.24          /* Check if status is up-to-date in the relevant MADT LAPIC entry... */
    1.25 -        push_block("If", "LNotEqual(Local2, \\_PR.PR%02X.FLG)", cpu);
    1.26 +        push_block("If", "LNotEqual(Local2, \\_SB.PR%02X.FLG)", cpu);
    1.27          /* ...If not, update it and the MADT checksum, and notify OSPM. */
    1.28 -        stmt("Store", "Local2, \\_PR.PR%02X.FLG", cpu);
    1.29 +        stmt("Store", "Local2, \\_SB.PR%02X.FLG", cpu);
    1.30          push_block("If", "LEqual(Local2, 1)");
    1.31          stmt("Notify", "PR%02X, 1", cpu); /* Notify: Device Check */
    1.32 -        stmt("Subtract", "\\_PR.MSU, 1, \\_PR.MSU"); /* Adjust MADT csum */
    1.33 +        stmt("Subtract", "\\_SB.MSU, 1, \\_SB.MSU"); /* Adjust MADT csum */
    1.34          pop_block();
    1.35          push_block("Else", NULL);
    1.36          stmt("Notify", "PR%02X, 3", cpu); /* Notify: Eject Request */
    1.37 -        stmt("Add", "\\_PR.MSU, 1, \\_PR.MSU"); /* Adjust MADT csum */
    1.38 +        stmt("Add", "\\_SB.MSU, 1, \\_SB.MSU"); /* Adjust MADT csum */
    1.39          pop_block();
    1.40          pop_block();
    1.41      }
    1.42 @@ -171,7 +171,7 @@ int main(int argc, char **argv)
    1.43      /* Define GPE control method '_L02'. */
    1.44      push_block("Scope", "\\_GPE");
    1.45      push_block("Method", "_L02");
    1.46 -    stmt("Return", "\\_PR.PRSC()");
    1.47 +    stmt("Return", "\\_SB.PRSC()");
    1.48      pop_block();
    1.49      pop_block();
    1.50      /**** Processor end ****/