[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/19] pc: acpi: make memory device's _UID integer
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH 10/19] pc: acpi: make memory device's _UID integer |
Date: |
Fri, 23 Oct 2015 16:57:13 +0200 |
It will allow us to drop ToInteger() operator from ASL/AML code.
Change is transparent to legacy ASL that uses ToInteger() operator,
since it can accept any ComputationalData which includes Integer type.
Signed-off-by: Igor Mammedov <address@hidden>
---
hw/acpi/memory_hotplug_acpi_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/acpi/memory_hotplug_acpi_table.c
b/hw/acpi/memory_hotplug_acpi_table.c
index e702cad..3eb1780 100644
--- a/hw/acpi/memory_hotplug_acpi_table.c
+++ b/hw/acpi/memory_hotplug_acpi_table.c
@@ -123,7 +123,7 @@ void build_mhpt(GArray *table_data, GArray *linker,
uint32_t nr_mem,
const char *s;
dev = aml_device("MP%02X", i);
- aml_append(dev, aml_name_decl("_UID", aml_string("0x%02X", i)));
+ aml_append(dev, aml_name_decl("_UID", aml_int(i)));
aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0C80")));
method = aml_method("_CRS", 0);
--
1.8.3.1
- [Qemu-devel] [PATCH 05/19] acpi: aml: add aml_call0() helper, (continued)
- [Qemu-devel] [PATCH 05/19] acpi: aml: add aml_call0() helper, Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 07/19] pc: acpi: memhp: move MHPD._STA method into MHPT table, Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 04/19] acpi: aml: add aml_decrement() and aml_subtract(), Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 06/19] pc: acpi: move SSDT part of memhp into a custom table, Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 11/19] pc: acpi: memhp: move MHPD.MRST method into MHPT table, Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 08/19] pc: acpi: memhp: move MHPD.MLCK mutex into NHPT table, Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 10/19] pc: acpi: make memory device's _UID integer,
Igor Mammedov <=
- [Qemu-devel] [PATCH 09/19] pc: acpi: memhp: move MHPD.MSCN method into MHPT table, Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 12/19] pc: acpi: memhp: move MHPD.MPXM method into MHPT table, Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 13/19] pc: acpi: memhp: move MHPD.MOST method into MHPT table, Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 16/19] pc: acpi: memhp: move MHPD.MCRS method into MHPT table, Igor Mammedov, 2015/10/23
- [Qemu-devel] [PATCH 15/19] pc: acpi: bump DSDT revision compliance to v2, Igor Mammedov, 2015/10/23